Page 1 of 1

Text files -- Help

PostPosted: June 26th, 2006, 6:23 pm
by rhartl
I am trying to get some more info from some complex (at least for me complex) code. I am trying to have the code write some internal variable values into a text file. The code goes something like this:

Procedure ObjofInterest.Procof Interest

Var F : Text

....

AssignFile(F,'Atest.txt');
Append(F);

....


Writeln(F,... some internal variable values...);

...

CloseFile(F);


Compiles and runs but no text file. Any ideas?

-- Rich

PostPosted: June 26th, 2006, 9:23 pm
by Johnny_Bit
yup, file does not exist. you should consult your F1 why... 'cause if you'd did that, you'd knew alright that append does not create file! you've got to create it to append. add simple check of file existence, before messing with it.

//if you're trying doing some debug log, you'd rather check internal stuff for that one, debugging you know...