What's going on? OpenTextFile.WriteLine error:- Object doesn't support property or method 'WriteLine'
What's going on? OpenTextFile.WriteLine error:- Object doesn't support property or method 'WriteLine'
需要一些建议请窥视...
11 <script>
12 fname='C:/Genesis 15/site/portal/proj/htm_app/pkmn/test_2.txt'
13 mode=8 // Open a file for reading
14 create=true // a new file will not be created
15
16 xfs=new ActiveXObject('Scripting.FileSystemObject')
17 xfs.OpenTextFile(fname,mode,create)
18 xfs.WriteLine('This text will be added to the end of file')
19 xfs.Close()
20 </script>
returns:-
SCRIPT438: Object doesn't support property or method 'WriteLine'
File: default.htm, Line: 18, Column: 3
真不懂!
我错过了什么?
这与我在 IE 中使用的代码相同,好吧,永远...
现在弹出这个,AARRGGHH?!
已解决!
xfs=new ActiveXObject('Scripting.FileSystemObject')
fi=xfs.OpenTextFile(fname,mode,create)
fi.WriteLine('This text will be added to the end of file')
fi.Close()
需要一些建议请窥视...
11 <script>
12 fname='C:/Genesis 15/site/portal/proj/htm_app/pkmn/test_2.txt'
13 mode=8 // Open a file for reading
14 create=true // a new file will not be created
15
16 xfs=new ActiveXObject('Scripting.FileSystemObject')
17 xfs.OpenTextFile(fname,mode,create)
18 xfs.WriteLine('This text will be added to the end of file')
19 xfs.Close()
20 </script>
returns:-
SCRIPT438: Object doesn't support property or method 'WriteLine'
File: default.htm, Line: 18, Column: 3
真不懂!
我错过了什么?
这与我在 IE 中使用的代码相同,好吧,永远...
现在弹出这个,AARRGGHH?!
已解决!
xfs=new ActiveXObject('Scripting.FileSystemObject')
fi=xfs.OpenTextFile(fname,mode,create)
fi.WriteLine('This text will be added to the end of file')
fi.Close()