fopen错误,属性为null

fopen error, null property

本文关键字:null 属性 错误 fopen      更新时间:2023-11-30

我试图从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或未定义,而不是Function对象。

有什么帮助吗?

fopen不是JavaScript函数。