Re: "scrrun.dll" not compatible in different languages?
- From: "Rick Rothstein" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx>
- Date: Sat, 2 Jul 2005 20:07:30 -0400
> The other thing that FSO does extremely well is handle Unix style end of
> line markers. The built in VB 6 "line input" statement requires line
> markers to be the DOS standard of CRLF. The FSO readline handles CR, LF,
> and CRLF.
Unless the file is humongous (several tens of megabytes big), this method using standard VB statements will work fine also...
Dim FileNum As Long
Dim TotalFile As String
Dim IndividualLines() As String
FileNum = FreeFile
Open "c:\SomeDircectory\YourFile.txt" For Binary As #FileNum
TotalFile = Space(LOF(FileNum))
Get #FileNum, , TotalFile
Close #FileNum
IndividualLines = Split(TotalFile, vbLf)
where you can now loop through the IndividualLines array in order to perform whatever action you need to on the lines in the file one at a time.
Rick - MVP
.
- Follow-Ups:
- Re: "scrrun.dll" not compatible in different languages?
- From: Michael D. Ober
- Re: "scrrun.dll" not compatible in different languages?
- References:
- Re: "scrrun.dll" not compatible in different languages?
- From: Michael D. Ober
- Re: "scrrun.dll" not compatible in different languages?
- Prev by Date: Re: How to select ListView Item with right click
- Next by Date: Re: "scrrun.dll" not compatible in different languages?
- Previous by thread: Re: "scrrun.dll" not compatible in different languages?
- Next by thread: Re: "scrrun.dll" not compatible in different languages?
- Index(es):
Relevant Pages
|