writeing '' to a file

Please discuss general Delphi programming topics here.

writeing '' to a file

Postby Christine123 » August 20th, 2007, 7:40 am

I know how to write to a file

writeln(SendFile, 'yada yada yada'

and the file is as:
yada yada yada

but how would it do it if I wanted the file to be :
'yada yada yada' ----> with the 2 ''s
Christine123
Junior Member
Junior Member
 
Posts: 25
Joined: May 28th, 2007, 10:28 pm

Postby HPW » August 20th, 2007, 7:54 am

Try:

writeln(SendFile, '''yada yada yada''');

Follow the help about a ' to the string explanantion.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron