Please Help ! ---- FileStream Values

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
freesmith's picture

found it , thanks

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's picture

hey, thanks for

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's picture

Use as string , for example:

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

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.