Menu
hi,
I have written a simple javascript code to write in a file .
here is my simple code .
1 var myFile = new File(“testfile.txt”)
2 myFile.open(“w”)
3 for(i=1;i<100;i++)
4 myFile.writeln(i)
5 myFile.close()
I am running this code on client side.
but this code is giving me a error File is not defined .
can anybody tell me
What is wrong with this script ?
or any other method to read a file and to write a file in javascript .
waiting for a reply .
Thank in advance .
-Umesh