opening txt files

Paul D. DeRocco pderocco at ix.netcom.com
Wed Jan 16 00:49:46 EST 2013


> From: Kay C Lan
> 
> Actually I take that back. If Pages places an extra space after EVERY
> char, so there are two spaces between words instead of one, there is a
> space after the last word on a line but before the carriage return,
> and another space after the carriage return and before the first char
> of a new line, then it should be just a simple matter of:
> 
> --assuming the very first char is invalid
> put true into tOdd
> repeat for each char tChar in tData
>   if (tOdd = true)
>     put tChar after tOutput
>     put false into tOdd
>   else
>     put true into tOdd
>   end if
> end repeat
> put tOutput into fld "WhereEver"
> 
> If there is not an extra space after EVERY char, then it becomes much
> more difficult.

Is it possible that the original text file is in Unicode, so that each
character in the ASCII set is followed by a null, and something is
converting the nulls into blanks? Possibly the display routine itself?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 





More information about the use-livecode mailing list