Hi@all,

sorry but i'am new at VBS. Ich have make a HTML-Page with VBScript and now i
try to read and write a text file but how,

[script]
Dim TextLine
FileOpen(1, Projektverzeichnis+"Inhalt\Help.htm", OpenMode.Input) ' Open
file for reading.
While Not EOF(1)
TextLine = LineInput(1) ' Read next line.
Debug.WriteLine(Seek(1)) ' Position of next line.
End While
FileClose(1)
[/script]

will not work. Thx for any help,

cya Thommy


Sorry about my English

Re: FileOpen by mr

mr
Mon Jan 03 12:15:37 CST 2005

Servus Thommy,

It's all a matter of permissions.

ACHTUNG! VORSICHT! Generally speaking it is bad practice to read and
write files from an html page. Think about that. If you allow reading
and writing from an html page, then some hacker/cracker will seduce
you into opening his page, and then write all over your disk...

Do you want that?

If you really must allow an html page to read/write the disk, then go
to your security permissions dialog, and relax your settings.

(Internet Options/Security Tab/select appropriate domain/enable ActX)

mfg, jw

"Thomas Bender" <Thomas.Bender@de.bosch.com> wrote in message
news:crbnbi$pqq$1@ns2.fe.internet.bosch.com...
> Hi@all,
>
> sorry but i'am new at VBS. Ich have make a HTML-Page with VBScript and now
i
> try to read and write a text file but how,
>
> [script]
> Dim TextLine
> FileOpen(1, Projektverzeichnis+"Inhalt\Help.htm", OpenMode.Input) '
Open
> file for reading.
> While Not EOF(1)
> TextLine = LineInput(1) ' Read next line.
> Debug.WriteLine(Seek(1)) ' Position of next line.
> End While
> FileClose(1)
> [/script]
>
> will not work. Thx for any help,
>
> cya Thommy
>
>
> Sorry about my English
>
>



Re: FileOpen by Thomas

Thomas
Tue Jan 04 01:07:20 CST 2005

Moin jw,

the Page ist locat in the Intranet where i try to create the textfile and i
hope ther are no hacker/cracker *G*
Orit is possible ti use a XML-File? I (the user) hav the read- and write
permission in the page folder

cya Thommy


"Thomas Bender" <Thomas.Bender@de.bosch.com> wrote in message
news:crbnbi$pqq$1@ns2.fe.internet.bosch.com...
> Hi@all,
>
> sorry but i'am new at VBS. Ich have make a HTML-Page with VBScript and now
i
> try to read and write a text file but how,
>
> [script]
> Dim TextLine
> FileOpen(1, Projektverzeichnis+"Inhalt\Help.htm", OpenMode.Input) '
Open
> file for reading.
> While Not EOF(1)
> TextLine = LineInput(1) ' Read next line.
> Debug.WriteLine(Seek(1)) ' Position of next line.
> End While
> FileClose(1)
> [/script]
>
> will not work. Thx for any help,
>
> cya Thommy
>
>
> Sorry about my English
>
>