Re: Autodetect line endings in a text file...

2002-05-29 Thread Todd Wade
"Sumit Babu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello All, > > I will be getting the files from different platforms (i.e. Unix or > Windows). Is there a way i can automatically detect the line endings and > accordingly use the chomp function t

Re: Autodetect line endings in a text file...

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 08:37 , Timothy Johnson wrote: > Do you have to send the files back to their respective platforms? If not, > then I would suggest just changing all line endings to the line endings > that > your system uses. good point, and I think jonathan has also spoken well,

RE: Autodetect line endings in a text file...

2002-05-23 Thread Timothy Johnson
endings in a text file... Hello All, I will be getting the files from different platforms (i.e. Unix or Windows). Is there a way i can automatically detect the line endings and accordingly use the chomp function to remove it. Regards, Sumit

Re: Autodetect line endings in a text file...

2002-05-23 Thread Jonathan E. Paton
> I will be getting the files from different platforms > (i.e. Unix or Windows). Is there a way I can automatically > detect the line endings and accordingly use the chomp > function to remove it. You need to remember Mac's have Yet Another Newline Sequence, which makes the whole exercise ra

Autodetect line endings in a text file...

2002-05-23 Thread Sumit_Babu
Hello All, I will be getting the files from different platforms (i.e. Unix or Windows). Is there a way i can automatically detect the line endings and accordingly use the chomp function to remove it. Regards, Sumit. <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> We