Re: Splitting up a string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Opettaja" <opettaja@xxxxxxxxx> wrote in message
news:1133121415.467885.194440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<snip>
> So if anyone has any suggestions on how I can break up each line into
> its own variable that would be greatly appreciated. And sorry If im a
> little vague on information, I am new to c# and still learning, If you
> need more information just let me know.

This might be helpful:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconReadingTextFromFile.asp

It reads the file a line at a time. The problem with Notepad is probably
down to the difference in linefeeds/carraige returns on *nix/Windows. It
might be that the file includes \r or \n rather than both. There's probably
a way to configure what the above code uses as as a line end.

HTH


.



Relevant Pages