Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading from file in Embedded VB

Status
Not open for further replies.

stuartd

Programmer
Joined
Jan 8, 2001
Messages
146
Location
US
Hi,

I want to read a file line by line using eVB.

Can i do this?

All i can find in the help file is 'ReadFile' which reads the whole thing in one go.

SD
 
I think you better take another look :)
Code:
BOOL CeReadFile( 
   HANDLE hFile, 
   LPVOID lpBuffer, 
   DWORD [COLOR=blue]nNumberOfBytesToRead[/color], 
   LPDWORD lpNumberOfBytesRead, 
   LPOVERLAPPED lpOverlapped);

-Dave Summers-
[cheers]
Even more Fox stuff at:
 
You are right - i was following the intellisense, which says :

Readfile(filename as string) as string

I'll look at the help better next time . . .

SD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top