Message 1 of 5
Printing to a text file, enclosing quotes?

Not applicable
08-27-2008
02:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok, again, the small is stumping me and i know its most likely something simple. In the 3 days developing a complicated exporter/converter for some of our level files its the smallest thing,
All variables work and are declared , just what i get is output is
This, as you imagine is not desirable. How do i get rid of the quotes that it adds when writing a string to a file.
print "hello" to:filestream makes the file contain "hello".
i need it to write hello.
f = openFile exportFilePath_ mode:"wt"
x = "information {\n"
x += "key = \"value\";\n"
x += "};\n"
print x to:f
All variables work and are declared , just what i get is output is
"information {
key = "value"
};"
This, as you imagine is not desirable. How do i get rid of the quotes that it adds when writing a string to a file.
print "hello" to:filestream makes the file contain "hello".
i need it to write hello.