<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Quotation marks in createFile text (Maxscript) in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7043437#M12870</link>
    <description>&lt;P&gt;Hi there, try using format instead of print to write your value out. &amp;nbsp;EG:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;myFile2 = openFile @"test_text2.txt" mode:"w"
for tv in Tvar do (
	format "%\n" tv to: myFile2	
)

close myFile2&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Apr 2017 12:29:25 GMT</pubDate>
    <dc:creator>drew_avis</dc:creator>
    <dc:date>2017-04-26T12:29:25Z</dc:date>
    <item>
      <title>Quotation marks in createFile text (Maxscript)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7040851#M12869</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to read and then write some text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I read a text file like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;&lt;/P&gt;&lt;P&gt;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;&lt;/P&gt;&lt;P&gt;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;I&amp;nbsp;put it into a variable (Tvar) like that :&lt;/P&gt;&lt;PRE&gt;global Tvar #()&lt;BR /&gt;myFile = openFile @...&lt;BR /&gt;while not eof myFile do
(
	TvarL= readLine myFile
	append Tvar TvarL
)
close myFile&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After I write in the same file (after some modifications)&amp;nbsp;&amp;nbsp;:&lt;/P&gt;&lt;PRE&gt;myFile = createFile @....&lt;BR /&gt;print Tvar to:myFile&lt;BR /&gt;close myFile&lt;/PRE&gt;&lt;P&gt;When I open this file, I get :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text"&lt;/P&gt;&lt;P&gt;"text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text&amp;nbsp;text"&amp;nbsp;&lt;/P&gt;&lt;P&gt;"text&amp;nbsp;text&amp;nbsp;text"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to get&amp;nbsp;quotation marks. How can I do ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:08:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7040851#M12869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T15:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quotation marks in createFile text (Maxscript)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7043437#M12870</link>
      <description>&lt;P&gt;Hi there, try using format instead of print to write your value out. &amp;nbsp;EG:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;myFile2 = openFile @"test_text2.txt" mode:"w"
for tv in Tvar do (
	format "%\n" tv to: myFile2	
)

close myFile2&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:29:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7043437#M12870</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2017-04-26T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Quotation marks in createFile text (Maxscript)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7045723#M12871</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Hi there, try using format instead of print to write your value out. &amp;nbsp;EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;myFile2 = openFile @"test_text2.txt" mode:"w"
for tv in Tvar do (
	format "%\n" tv to: myFile2	
)

close myFile2&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;works very well, thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:45:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/quotation-marks-in-createfile-text-maxscript/m-p/7045723#M12871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T07:45:30Z</dc:date>
    </item>
  </channel>
</rss>

