RE: Records stored in Text File (VB6)
- From: Marcelo Ribeiro <bobcapilontra@xxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 13:20:19 -0700
Hello,
follow this commands :
=================================================
Const ForReading = 1, ForWriting = 2
Set fso = CreateObject("Scripting.FileSystemObject")
Set x = fso.OpenTextFile(App.Path & "\hostnames.txt", ForReading)
Do While x.AtEndOfStream = False
mystring = Trim(x.ReadLine)
msgbox mystring
loop
--
IBM IGS
IT Specialist
=======================
Advanced Repackager with Wise Package Studio - Certified
"Keith" wrote:
> Ladies / Gentlemen,
>
> I've got a text file containing fixed length records. I'm using VB6 and
> need access to these records. Two Questions:
>
> 1. How do you open the text file?
> 2. How do you determine the end of a line in a text file?
>
> Thanks,
>
> KF
.
- Prev by Date: Getting IP Address from Hostname
- Next by Date: Data Report in VB6
- Previous by thread: Getting IP Address from Hostname
- Next by thread: Data Report in VB6
- Index(es):
Loading