PereBalsach
07-08-2007, 02:16 AM
Hi,
Anyone know how can I delete one or more characters in a text file with mel?
My problem is:
I have a textScrollList and I'm writing all the data in the List to a text file.
I'm writing each string with a "\n" at the end to enter a new line. Ok, thats what I want.
But...I don't want the last "\n" becouse the next time that I will write data to the text file I will have a space between the text from the last fprint to the new fprint.
Do you know what I mean? :)
Thanks in advice!
for ($i=0; $i<(`textScrollList -q -ni pathList`) ; $i++){
fprint $fileId ($NewpathLine[$i] + "\n");
}
Anyone know how can I delete one or more characters in a text file with mel?
My problem is:
I have a textScrollList and I'm writing all the data in the List to a text file.
I'm writing each string with a "\n" at the end to enter a new line. Ok, thats what I want.
But...I don't want the last "\n" becouse the next time that I will write data to the text file I will have a space between the text from the last fprint to the new fprint.
Do you know what I mean? :)
Thanks in advice!
for ($i=0; $i<(`textScrollList -q -ni pathList`) ; $i++){
fprint $fileId ($NewpathLine[$i] + "\n");
}
