Question : Is it possible to append to a file using fileOut in Photoshop's javascript?

I can create a file using the code below. However I need to append data to the file each time the script is run.

Is there a way to do this using fileOut, or is there another function for this?

Thanks.
Code Snippet:
1:
2:
3:
4:
fileOut.open("w", "TEXT", "????");
 
// Append title of document to file
fileOut.writeln("put this text in here");
Open in New Window Select All

Answer : Is it possible to append to a file using fileOut in Photoshop's javascript?

Found a work around, see code snippet. You copy the existing file contents to a string, append to this string and then write the file.
1:
2:
3:
4:
5:
6:
	fileOut.open("r", "TEXT", "????");
	textin = fileOut.read();
				
	fileOut.close();
	fileOut.open("w", "TEXT", "????");
	fileOut.writeln(texin + TextOut);
Open in New Window Select All
Random Solutions  
 
programming4us programming4us