opening txt files

Robert Sneidar slylabs13 at
Tue Jan 15 13:54:00 EST 2013

I am not sure why you are seeing this. I exported a pages newsletter file as text, then ran this command on it:

on mouseUp pMouseBtnNo
    answer file "Pick a text file" with "/Users/bobsneidar/Desktop/SneidarNewsletter.txt"
    put it into theFile
    open file theFile for read
    read from file theFile until cr
    put it
    close file theFile
end mouseUp

I got this in the message box:

2005 Summer Edition

Seems to work.


On Jan 15, 2013, at 10:34 AM, NISHOK LOVE wrote:

> Hi All
> I have a problem when I open .txt files in OSX, and I don't have much (any!) experience of reading files in LiveCode. 
> I have a file originally written in Word on Windows. When I export it as a .txt from Word for Mac I just accept the default Mac OS encoding option (Western (Mac OS Roman) and it all works fine when I open the file in my LiveCode.
> But when I open the original file in Pages and export it as Plain Text, I get a different result. When I open that file in LiveCode I find a space has been inserted after every character. So Hello world becomes H e l l o   w o r l d. 
> I guess this is a problem with the encoding, but how can my LiveCode understand what the incoming file's encoding is and respond accordingly? My LiveCode needs to be able to deal with any kind of text file...
> Thanks,
> Nishok Love
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list