Hi and thanks to Roy pardi for this on converting lists to strings and back
again:

>that's easy - just use:
>
>       myFileIOObj.writefile() = string(myList )
>
>To convert back you would use:
>
>       myList = value(string(rawString))

Getting the List to string to file works a treat, but getting it back from
the file and into a list is not so easy.

Here's my code:

scribe = new(xtra "FileIO")
scribe.openFile(the moviePath & "dictionary.txt", 0)
rawString = scribe.readFile()
myList = value(string(rawString))
put myList

...at the moment this returns "["
meanwhile scribe.readFile() returns ""["string"]"" with double quotation
marks.

Can anybody help?

Cheers,

Steve Bolton



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]

Reply via email to