open and read commands
Kenneth Brody
kenbrody at bestweb.net
Sun Dec 2 17:25:24 PST 2007
Quoting Mike Fedkiw (Sat, 1 Dec 2007 19:03:21 -0500):
> filepro 5.0.09
>
> I need to open a .txt file and read each line so I can compare to an
> existing filepro file.
>
> does anyone have an example of the syntax for the open and read
> commands. I cant get past two lines of code without a syntax error.
>
> This is what I have. Syntax error at "open"
>
> aa="c:/jpgfile.wri"
> bb=open(aa,r)
I take it you don't have a field called "r" which contains the mode with
which you want to open the file?
You probably want:
bb = open(aa,"r")
to open the file in read-only mode.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list