Output text conflicts with maxscript commands

Hi.
I want to write this sentence into an output text file:

Omid is “himself”.

and I should use these code:


output_file = createfile output_name
format "Omid is "himself"." to:output_file

now maxscript read "Omid is " separately and this causes an error.
how should I handle this?

use " instead of " for all quotation marks inside your string

thank you so much! :slight_smile:

and check out “string literals” from the maxscript help while you’re at it!

thank you resh.
actually I’m not much familiar with maxscript help yet! it’s very big and sometimes it’s hard to find suitable keyword for what I’m looking for. but totally max scripting is REALLY fun!
thanks again :):