2012-07-19 70 views
-1

我想從一個aspx頁面中的javacript寫入一個文件,並且出現錯誤。這是我的代碼和錯誤。fopen錯誤,null屬性

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'的值爲空或未定義,而不是函數對象。

任何幫助?

+1

JavaScript中是否存在fopen? – 2012-07-19 08:57:05

回答

2

fopen不是JavaScript函數。