>I am creating a flat file (text) using strtofile. The file contains lots of quotation marks. What's the easiest way to write those to a text file using strtofile.
>
>Right now for instance I want to create a line of text that is: RUN("F");
>
>strtofile("RUN("+CHR(034)+"F"+CHR(034)+");", 'C:\TEST.TXT',1)
>
>Is there any easier way than replacing all the quotation marks with "+chr(034)+"
You may want to use alternative way of delimiting a string, say, []
strtofile([RUN("F");], 'C:\TEST.TXT',1)
If it's not broken, fix it until it is.
My Blog