This content has been marked as final. Show 4 replies
What commands are you using to read the text file?
how about just creating a new empty text member, and setting its filename to your file?
newmem = new(#text)
newmem.filename = the moviepath&"myfile.log"
does that work for you?
On Tue, 24 Oct 2006 19:14:55 GMT, jpowerw posted in
> My program will read through many of them without a hitch:
> then bang, it hits a file where it does not know the CR,
> so it appends every line to the next (one long line).
If Ben's suggestion doesn't do it for you, can you expand on "it does not
know the CR"?
Are you sure these are non-text files or is there a chance they were saved
with different newline characters?
Microsoft apps typically use two chars, CR and LF while Mac and *nix
typically use one char, LF or CR (I forget which uses which). If there's a
chance this is what's happening, check out this Google Groups search:
mReadLine isn't a method of the FileIO Xtra, so I'm wondering which Xtra
Especially since, if I recall correctly, mReadLine was a method from the old
FileIO XObject (XObjects were deprecated in Dir5 or 6 and rendered
obsolete by Dir7). If you have any ancient XObject code in your movie, you
could run into problems. A hint would be Lingo similar to the following
FileIO(mNew, "read", "someFile.txt")
Mark A. Boyd