>Well... what do you know??? Bad thing always happens when you
>try to learn something... nothing goes right, right??? :(
>I need to omit the displayOpen command on that sample because
>I already know what file to open and save... So, I thought that
>I could just specify the file name to open... bang!!! What???
>'Bad file name' error??? what bad file??? I just don't get it...
>What did I do wrong??? I just told you the name of the file to open!!!
I copied your code and pasted it in Director. It works. Are you sure
that "SymbolsData.txt" is a simple text file? Are you sure it's
correctly named?
>And... when I opened the text file with the open dialog box and
>put the content of the file into the message window, I get
>"whatever_the_content_of_the_file"... Why am I getting the double
>quotes??? Anyway to get rid of it???
No. This indicates that it is text (string) format. Everything you
save using FileIO will be text format.
>One more question... I didn't go that far yet, but I gotta ask...
>How does FileIO read a data from the file??? Byte at a time, line
>at a time, or whole data at a time??? What would be the best way
>to parse the above form of data into the list and vice versa???
It does all the above. Try typing:
put xtra("fileIO").interface()
and RETURN key in the message window.
I would probably read in the whole file in one chunk. You will get a
string, which you can do find & replace in to replace delimiting
chars with blank space, and then you can convert it to a list.
-A.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]