ScriptSpot

Forum topic · General Scripting

Please Help ! ---- FileStream Values

By freesmith · 2009-04-21

Description

in max script ...
is there a way to directly write (") character in txt file, as a part of path value..
i want to export all the paths from material into the txt file , and later read them and use.. but i have a problem trying to write the path in txt file with (")character , since that way I figure it is much easier to read and use it later...
Any idea ...help...
thanks ")

Comments (3)

freesmith · 2009-04-21

found it , thanks everybody.. the key was in using print instead of rormat, like..
niz = #("r",k)
for i = 1 to niz.count do
(
print niz[i] to:output_file
)
and i've got (") in txt file finally :D

freesmith · 2009-04-21

hey, thanks for reply..although ...
do you mean like this
------------------------"niz " is the name of the array
for i = 1 to niz.count do
(
val = niz[i] as string
Format "%\n" val to:output_file
)
----------------------------
I've tried it , and txt file does not contain any (")

Anubis · 2009-04-21

Use as string , for example: path_val as string to:output_file 😉