magOO 0 Posted March 12, 2004 Hello!I add some text via FileWriteLine. But now i want to write a " in the Text.AutoIt stop the script and says that there is a an error.Can anybody please explain, how i can write a " in a File?ThanksmagOO Share this post Link to post Share on other sites
jpm 93 Posted March 12, 2004 Hello!I add some text via FileWriteLine. But now i want to write a " in the Text.AutoIt stop the script and says that there is a an error.Can anybody please explain, how i can write a " in a File?ThanksmagOOFilewriteLine("filename", '"')certainly difficult to read it is a ' followed by " followed by '.That second manner to protect string.THe idea is when you need one inside you use the other to protect Share this post Link to post Share on other sites
Bartokv 1 Posted March 12, 2004 Since quotes can be tricky, I tend to use Chr(34) to insert double quotes: FileWriteLine($FileHandle, "Quoted text follows: " & Chr(34) & "Hello" & Chr(34)) Guess there's always more than one way to swing a dead cat. Share this post Link to post Share on other sites
Jos 2,165 Posted March 12, 2004 (edited) Guess there's always more than one way to swing a dead cat. yeap, and this way will also work: """" but i prefer JPM's way... '"' Edited March 12, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
scriptkitty 1 Posted March 12, 2004 If you forget chr(): $q='"' $q2="'" MsgBox(1,"...and he said",$q2&"Quotes are fun" & $q2 &@CRLF& $q &"Quite fun" &$q) AutoIt3, the MACGYVER Pocket Knife for computers. Share this post Link to post Share on other sites
magOO 0 Posted March 13, 2004 Thanks To All For Your Help! Share this post Link to post Share on other sites