VB script file input 2004-02-12 - By Juan Lara
Back Hi, Dunk!
Look at this example:
Function ReadTextFileTest
Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, f, Msg
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\testfile.txt", ForWriting, True) f.Write "Hello world!" f.close
Set f = fso.OpenTextFile("c:\testfile.txt", ForReading) ReadTextFileTest = f.Read(5) ' "5" is numbers of character to read f.close
End Function
i hope it's usefull for you.
Juan.
-- --Mensaje original-- -- De: owner-xsi@(protected) [mailto:owner-xsi@(protected)] En nombre de duncan_burch@(protected) Enviado el: jueves, 12 de febrero de 2004 16:19 Para: XSI@(protected) Asunto: VB script file input
Hi guys, Anyone help me out with a simple question. � In vbscript i want to be able to read in a sequence of numbers from a text file. Any clues. � Ta all Dunk
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|