Sign in or 

People just like you can add or edit the content on this site. If you want to try editing, but aren't ready to add to this site, try our demo area.
Read more about editing pages at Wetpaint Central.
)
'Returns a string containing all the text in a file.End Function
'The default folder depends on how the script is run.
'But it's usually the folder the script is in.
' Dim sContents
' sContents = GetFileContents("smr_mt571_extract.txt")
' MsgBox Len(sContents)
Dim oFso, oFile, oTs
Set oFso = CreateObject("Scripting.FileSystemObject")
Set oFile = oFso.GetFile(vsFilePath)
Set oTs = oFile.OpenAsTextStream(1) ' <-- 1 means ForReading
GetFileContents = oTs.Read(oFile.Size)
oTs.Close Set oTs = Nothing
Set oFile = Nothing
Set oFso = Nothing
2buck |
Latest page update: made by 2buck
, Dec 2 2006, 12:01 AM EST
(about this update
About This Update
Edited by 2buck
view changes - complete history) |
|
More Info: links to this page
|