| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
Read data out of a File using WSH
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0 Dim fs, f, ts, s, filename filename= "c:\SOMEFILE.TXT" Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(filename) Set ts = f.OpenAsTextStream(ForReading, Tristatefalse) s = ts.skipline s = ts.skipline s = ts.skipline s = ts.skipline s = ts.ReadLine s = mid(s,12) msgbox s ts.Close Read Complete Article |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Read data out of a File using WSH |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|