David Johnson
2007-02-08 04:47:27 UTC
Well, I will ask these and hope for an answer before this list shuts
down. :-)
1. When I create a text file ("text/plain") using
textOutputStream1.WriteLine and then read it back, the EndOfLine
characters are detected correctly. But when I create a text file with
a word processor (like TextEdit) the carriage returns are *not*
detected as EndOfLine characters.
For example:
newarray = split(fileString, EndOfLine)
newarray = split(fileString, chr(13) )
Neither of these parse a text processor string into lines.
Is there something I can do to a string that will allow the CRs to be
seen as EndOfLine?
2. When a user of my appllication saves a document, almost all of the
data is text. But the user may have added one (or more) pictures to
the document. How do I save the picture with the text and recover it
when he opens the document later?
RB5.5 pro, OSX 10.3.9
Thanks.
As far as the new list is concerned, will the RB regulars (Joe Stout,
Geoff Perlmann, et. al.) be answering questions on the new list, or
will they be confined to monitoring the forum?
Thanks again,
David
down. :-)
1. When I create a text file ("text/plain") using
textOutputStream1.WriteLine and then read it back, the EndOfLine
characters are detected correctly. But when I create a text file with
a word processor (like TextEdit) the carriage returns are *not*
detected as EndOfLine characters.
For example:
newarray = split(fileString, EndOfLine)
newarray = split(fileString, chr(13) )
Neither of these parse a text processor string into lines.
Is there something I can do to a string that will allow the CRs to be
seen as EndOfLine?
2. When a user of my appllication saves a document, almost all of the
data is text. But the user may have added one (or more) pictures to
the document. How do I save the picture with the text and recover it
when he opens the document later?
RB5.5 pro, OSX 10.3.9
Thanks.
As far as the new list is concerned, will the RB regulars (Joe Stout,
Geoff Perlmann, et. al.) be answering questions on the new list, or
will they be confined to monitoring the forum?
Thanks again,
David