ASP:A question about vbscript
From: chn (qchen@beijing.sema.slb.com)
Date: 03/25/03
- Next message: Joost Schipperheijn: "Re: RSA Encryption - Bad Length Error"
- Previous message: Boxman: "<location> and multiple paths"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "chn" <qchen@beijing.sema.slb.com> Date: Mon, 24 Mar 2003 17:08:11 -0800
HI all:
I have a question.
I try to use vbscript to open a client side 's file and read some
information from the file.But failed.I can not find the reason.Didnit show
any error message to me.My code like the following.Please help me to solve
it.Thanks.
client side:
<SCRIPT LANGUAGE="VBScript">
Dim fso, f1, ts, s
Const ForReading = 1
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.OpenTextFile("c:\testfile.txt", ForReading)
s = ts.ReadLine
ts.Close
fso.close
msgbox s
</SCRIPT>
- Next message: Joost Schipperheijn: "Re: RSA Encryption - Bad Length Error"
- Previous message: Boxman: "<location> and multiple paths"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|