Uh... how to write " in a file? :)

BlitzMax Forums/BlitzMax Beginners Area/Uh... how to write " in a file? :)

gameproducer(Posted 2009) [#1]
This isn't working... :)
WriteLine file, 'they call me "Dude"' 



Brucey(Posted 2009) [#2]
WriteLine file, "they call me ~qDude~q"



Brucey(Posted 2009) [#3]
See Help->Language->Literals for list of other escape characters.


xlsior(Posted 2009) [#4]
Alternatively:

WriteLine file, "they call me "+chr$(34)+"Dude"+chr$(34)



GfK(Posted 2009) [#5]
Using escape chars is easier as you don't have to mess around with concatenation.


gameproducer(Posted 2009) [#6]
Forgot to thank about this... so thanks now! :)