Question
[JS] About Files
My name is avi. I have some difficulties in my script.
My problem is i want to create a file and i want to read and write that file.
For creating a file i am using following code but it is not working. Can anyone please look at it.
var myFile = new File("~/Desktop/amit.rtf");
myFile.create();
Currently i am working on two scripts. I want to create and write a text file using first program and then i need to read that text file using second program. Can anyone please tell me how to create, read and write a file using javascript(InDesign).
I just want to write a number in that file which i can read using second program. Please help me.
Thank you,
My problem is i want to create a file and i want to read and write that file.
For creating a file i am using following code but it is not working. Can anyone please look at it.
var myFile = new File("~/Desktop/amit.rtf");
myFile.create();
Currently i am working on two scripts. I want to create and write a text file using first program and then i need to read that text file using second program. Can anyone please tell me how to create, read and write a file using javascript(InDesign).
I just want to write a number in that file which i can read using second program. Please help me.
Thank you,
