Hello Sergio,

Thursday, July 26, 2001, Sergio Gonzalez <[EMAIL PROTECTED]> wrote:


SG> Hi,

SG> I'm wondering how to make sure that when my data is written to a file, a
SG> proper end of line is in place after ea. intended line.

it's not your job. leave it to operating system.

SG> code:

SG> ...

SG> # now loop and append the data to the file 

SG> # Loop thru hash and write data 
SG> foreach $value(values %cgidata) {  
SG>      if ($debug > 0) { print "Writing Values: \"$value\",<BR>\n";   }
SG>          print FILEHANDLE "\"$value\",";             # PRINT all data
   
SG>  }  

SG> # #### Here is were my question is #####################################

SG> print FILEHANDLE "\n";                          # PRINT end of line     

that's enough.

SG> ... more code ...

SG> should i use something like # print FILEHANDLE "\r" 
NO.

SG> basically i want my data to output as comma delimited, but i want the end
SG> of lines to be in place when i ftp the file over to a win system.

again, it's not your job. you should switch ftp to ascii mode, and
then transfer your text files.

Best wishes,
 Maxim                            mailto:[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to