Text files -- Help

Please discuss general Delphi programming topics here.

Text files -- Help

Postby rhartl » June 26th, 2006, 6:23 pm

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




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



Compiles and runs but no text file. Any ideas?

-- Rich
Active Member
Active Member
Posts: 11
Joined: June 12th, 2006, 2:30 am

Postby Johnny_Bit » June 26th, 2006, 9:23 pm

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...
VIP Member
VIP Member
Posts: 455
Joined: June 15th, 2003, 9:56 am

Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest