Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/444.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript fopen错误,null属性_Javascript - Fatal编程技术网

Javascript fopen错误,null属性

Javascript fopen错误,null属性,javascript,Javascript,我试图在一个aspx页面中从javascript写入一个文件,但遇到了一个错误。这是我的代码和错误 var fh = fopen("c:\temp\MyFile.txt", 3); // Open the file for writing if (fh != -1) // If the file has been successfully opened { fwrite(fh, saveD

我试图在一个aspx页面中从javascript写入一个文件,但遇到了一个错误。这是我的代码和错误

   var fh = fopen("c:\temp\MyFile.txt", 3); // Open the file for writing

               if (fh != -1) // If the file has been successfully opened
               {

                   fwrite(fh, saveData); // Write the string to a file
                   fclose(fh); // Close the file 
               }
属性“fopen”的值为null或未定义,不是函数对象


有什么帮助吗?

fopen不是JavaScript函数。

JavaScript中是否存在fopen?