Javascript 读写文件的一个例子
来源:互联网 发布:80端口被占用怎么解决 编辑:程序博客网 时间:2024/04/30 12:17
下面是JS写的例子,在客户端操作,用处不是很多。
<script type="text/javascript">
function writeFile(s)...{
fso = new ActiveXObject("Scripting.FileSystemObject");
alert(fso);
f = fso.OpenTextFile("d:/testfile.txt", 8, true);
f.WriteLine("This is a test.");
alert("aaa");
f.Close();
}
</script>
function writeFile(s)...{
fso = new ActiveXObject("Scripting.FileSystemObject");
alert(fso);
f = fso.OpenTextFile("d:/testfile.txt", 8, true);
f.WriteLine("This is a test.");
alert("aaa");
f.Close();
}
</script>
- Javascript 读写文件的一个例子
- 文件读写的一个例子
- 一个文件读写的简易例子
- c语言文件读写的一个例子
- 读写文件的例子
- 通过一个文件拷贝的例子了解二进制文件的读写
- Android读写文件的一个简单入门的例子
- Java读写文件的例子
- 读写.plist文件的例子
- Android 文件读写的例子
- 读写propert文件的例子
- java文件读写的例子
- 一个VC读写刷卡器的例子
- 一个GDAL的读写数据例子
- 一个GDAL的读写数据例子
- bcb 读写ini 配置文件的一个例子
- 一个读写ini文件属性的例子
- 【MTK】一个寄存器读写的例子
- Install PEAR Problem
- server transfer
- warning:Cannot modify header information
- Why do we get error "Call to undefined function: ora_logon()/ ocilogon()"?
- split-PHP
- Javascript 读写文件的一个例子
- Php部分常见问题总结
- how to enable or disable registry editing in xp
- Invalid postback or callback argument
- Microsoft Access: ActiveX component cannot create object
- Replace function in MySQL
- 富人和穷人的12大经典差异
- Critical analysis of SAP HR module (Part 1)
- ASP.NET程序中常用的三十三种代码一