opening txt files

Peter M. Brigham pmbrig at gmail.com
Tue Jan 15 18:18:23 EST 2013


I have seen the behavior Nishok describes. It was some time ago and I don't remember what the issue was, but I think it was fixable.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig

On Jan 15, 2013, at 1:54 PM, Robert Sneidar wrote:

> 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.
> 
> Bob
> 
> 
> 
> 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 lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list