Scott,

After changing to binfile it loads without the extra spaces. But then I run 
into other issues using contains etc. on the returned text.

So I had to come up with a bit of code to strip out what I need etc. But I 
think It must be the UTF issue.

Tom
-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On Mar 9, 2013, at 11:22 AM, Scott Rossi <sc...@tactilemedia.com> wrote:

> This is really dumb, but have you tried reading as binary (binfile) instead 
> of file?  I recently found that LiveCode was not seeing returns in text files 
> saved out of LiveCode, and opening using binfile seems to have solved my 
> issue (though don't know why).
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> On Mar 9, 2013, at 6:45 AM, Thomas McGrath III <mcgra...@mac.com> wrote:
> 
>> I am getting back an extra space between each character when getting the 
>> contents of a file. Any ideas how this is happening? Why? How to fix it?
>> 
>> 
>> The text in the file is:
>> 09-03-2013 09:01:16 F3 F3 F3 
>> 
>> and the text I am getting back with extra spaces:
>> 0 9 - 0 3 - 2 0 1 3   0 9 : 0 1 : 1 6   F 3   F 3   F 3
>> 
>> Here is the code:
>> 
>> function TAGetEvent
>>         put URL  ("file:" & (specialFolderPath("Support") & slash & 
>> "KeyTrapper" & slash & "Events.txt")) into tFile
>>         return  tFile
>> end TAGetEvent
>> 
>> 
>> 
>> Thanks,
>> 
>> Tom
>> 
>> -- Tom McGrath III
>> http://lazyriver.on-rev.com
>> mcgra...@mac.com
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to