Problems with CrLfFileStream
Lex Spoon
lex at cc.gatech.edu
Tue Mar 12 23:22:45 UTC 2002
Jimmie Houchin <jhouchin at texoma.net> wrote:
> file2 nextPutAll: file1 "DoSomethingHereToInsertProperLineEnds"
Your code looks fine. You shouldn't have to do *anything* to get the
proper line endings for your platform, aside from making sure the file
is in text mode, which I'm pretty sure is the default.
Be aware: nextLine will strip the line ending, and nextPutAll: won't add
a line ending. If you want to add a line ending, you can use the #cr
message. Maybe this has something to do with what you are observing?
-Lex
More information about the Squeak-dev
mailing list
|