create a text file using javascript

前端 未结 4 954
走了就别回头了
走了就别回头了 2020-12-03 08:48

I am using the following code to create a text file using javascript and it\'s not working


    
        

        
4条回答
  •  悲哀的现实
    2020-12-03 09:09

    You have to specify the folder where you are saving it and it has to exist, in other case it will throw an error.

    var s = txt.CreateTextFile("c:\\11.txt", true);
    

提交回复
热议问题