Volkmaniac
Technical User
I'm having trouble understanding how to grab and open files using aspect. The following code will recognize and choose the correct file, but it will not open that file when prompted.
string fname
string FileSpec = "S:\Client Services\LETTERS\ARSN*.fz"
String sLine
String Output
long Newest
Fname = "[ None ]" if findfirst FileSpec Newest = $FLTIME Fname = $FILENAME while findnext if $FLTIME >= Newest Newest = $FLTIME Fname = $FILENAME endif
endwhile
endif
usermsg "%s" fname
This part doesn't work:
fopen 1 fname read text
While not feof 1
I tried fopen "%s" fname without any luck
string fname
string FileSpec = "S:\Client Services\LETTERS\ARSN*.fz"
String sLine
String Output
long Newest
Fname = "[ None ]" if findfirst FileSpec Newest = $FLTIME Fname = $FILENAME while findnext if $FLTIME >= Newest Newest = $FLTIME Fname = $FILENAME endif
endwhile
endif
usermsg "%s" fname
This part doesn't work:
fopen 1 fname read text
While not feof 1
I tried fopen "%s" fname without any luck