Link to home
Start Free TrialLog in
Avatar of Rocking
Rocking

asked on

How to identify in the CSV file whether the line ends with "\n","\r" or "\n\r"

Hi,

How to identify in the CSV file whether the line ends with "\n","\r" or "\n\r"

Since in mac it takes as CR as the new line.
In Windows CRLf as the new line.
In Linux Lf. as the new line.

I have a csv file which is created in mac,linux or windows it is unknown,i need to import the file.
SOLUTION
Avatar of Cornelia Yoder
Cornelia Yoder
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Paul S
Paul S
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial