|
-
Nov 10th, 2000, 02:45 AM
#2
New Member
Public Sub ReadDetails(IsFilename As String)
' read the text from file
Set fso = CreateObject("Scripting.FileSystemObject")
Set tem = fso.OpenTextFile(IsFilename)
Do Until am = "end" Or am = "End" Or am = "END"
am = tem.readline
Loop
end Sub
This will read one line at a time, and in this spesific routine, it will stop when it hits the word "END" or "end" or "End". IsFilename = full path and filename.
hope this helps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|