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.

-----Original Message-----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 5/23/02 5:21 AM
Subject: Autodetect line 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.
<<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>>

We cannot become what we need to be by remaining what we are.

<<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>>


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

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

Reply via email to