No returns in my text file

Sarah Reichelt sarah.reichelt at gmail.com
Mon Oct 5 18:05:49 EDT 2009


On Tue, Oct 6, 2009 at 2:29 AM, Francis Nugent Dixon <effendi at wanadoo.fr> wrote:
> Hi from Paris,
>
> I create a password file, I put a list of passwords, one password per
> line (with returns). I call it  "genuine file name on my on-rev server"
>
> Running my first irev (on-rev) routine, I execute the command :
>
> put URL "genuine file name on my on-rev server" into GVPassTable
>
> Instead of a list of passwords (line by line) in my GVPassTable,
> I find that the file contains a single line, with no line separation.
>
> Is there something I haven't understood ? Where did the returns go to ?

How are you displaying this file?
And are you using the "file:" keyword to specify how the file should be opened?
If you are showing it on a web page, then the returns are not
displayed by a browser, so you need something like this:

put URL "file:genuine file name on my on-rev server" into GVPassTable
replace cr with "<br />" in GVPassTable
put GVPassTable

If you are just using it as a variable, then I have had no problems
with linefeeds appearing no matter what I do about line endings. It
seems to be that On-Rev is as flexible as  Rev itself in this regard,
so long as you use the "file:" prefix for opening the file.

Cheers,
Sarah



More information about the use-livecode mailing list