Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trimming newlines

Status
Not open for further replies.

DanielLCC

Programmer
Feb 16, 2006
8
US
I have a program in which I write several numbers, seperated by commas, to a text file. I then use the split function to get the individual numbers back. The problem is that the writer puts a newline at the end of the text file and I need to somehow get rid of it. I tried using a string.trim function, but I couldnt figure out how to say newline as a character.
 
it is either controlchars.crlf or lf or cr or you can check for char(13) or environment.newline(). Or some other method.

Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top