RE: Create Text File

2003-01-15 Thread Jakob Kofoed
Hi there, Just another way to do it! Cheers, Jakob #!/usr/bin/perl -w open FILE, ">", yourfile.dat; print FILE

RE: Create Text File

2003-01-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Hello all, > > I need to create a .txt file and then print some text to it > Does anyone know how to do this? > > Thanks in advance... > Kurt By opening, printing, you will have a text file: open(MYTEXTFILE, ">text.txt") || die "Unable to o

RE: Create Text File

2003-01-15 Thread Dan Muey
Use open() to open a file for writing and it will be created automatically. open(FILE, '>file.txt'); print FILE $stuff; close(FILE); perldoc -f open > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 11:06 AM > To: [EMAIL PRO

RE: Create Text File

2003-01-15 Thread Paul Kraus
#!/usr/bin/perl -w open TEXT,"mytext.txt"; print TEXT "add some text to text file\n"; print TEXT "add some more text to text file\n"; close TEXT; > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 12:06 PM > To: [EMAIL PROTECTE