zworp
01-22-2003, 12:58 PM
hmm here I go again, sorry :rolleyes:
how do I start i new line when I'm writing text to a file?
my humble code:
---------------------
$fileId=`fopen $FileName "w"`;
fprint $fileId ( $svar[0] + ".x" + " = " + $obj1x + "f;" );
fprint $fileId ( $svar[0] + ".y" + " = " + $obj1y + "f;" );
fprint $fileId ( $svar[0] + ".z" + " = " + $obj1z + "f;" );
fclose $fileId;
----------------------
result:
pCylinder1.x = -5.834730367f;pCylinder1.y = 1.956431688f;pCylinder1.z = 4.367406601f;
and I want it to look like this:
pCylinder1.x = -5.834730367f;
pCylinder1.y = 1.956431688f;
pCylinder1.z = 4.367406601f;
how do I start i new line when I'm writing text to a file?
my humble code:
---------------------
$fileId=`fopen $FileName "w"`;
fprint $fileId ( $svar[0] + ".x" + " = " + $obj1x + "f;" );
fprint $fileId ( $svar[0] + ".y" + " = " + $obj1y + "f;" );
fprint $fileId ( $svar[0] + ".z" + " = " + $obj1z + "f;" );
fclose $fileId;
----------------------
result:
pCylinder1.x = -5.834730367f;pCylinder1.y = 1.956431688f;pCylinder1.z = 4.367406601f;
and I want it to look like this:
pCylinder1.x = -5.834730367f;
pCylinder1.y = 1.956431688f;
pCylinder1.z = 4.367406601f;
