Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to a TextFile

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
US
If I want to write the results of a query to TextFile with a special Deliminiter, Will this work if the line exceeds 255 characters?

Code:
Procedure WriteTxt; 
Var 
  F : Textfile;
Begin 
  AssignFile(F, 'c:\SomeFile.txt'); 
  Append(F);  
  Writeln(F, qry1.fields(0).asString +'~' + etc.); 
  Closefile(F); 
End;

Thanks,
Rewdee
 
I think you need square brackets around your fields[0] instead of parentheses, probably need a loop to loop through the dataset, but otherwise that looks ok. TealWren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top