VB script file input 2004-02-12 - By duncan_burch@(protected)
Back Hy thanks for that, brill!! :) One more little question, when you read in from the text file, how do I get this data into an array? Thx for answering my silly questions dunk -- -- Original Message -- -- Wrom: KJVZCMHVIBGDADRZFSQHYUCDDJBL To: <XSI@(protected)> Sent: Thursday, February 12, 2004 3:59 PM Subject: RE: VB script file input
> 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 > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|