Click to See Complete Forum and Search --> : ReadFileScatter function
ginzomo
June 6th, 2005, 01:31 AM
Does anyone has the source code on how to use ReadFile or ReadFileScatter function? I have tried to use these two function to read data from text file which are stored by column and row and used tab/space to recognize different filed of data....
THANX for all the kind help!
Boris K K
June 6th, 2005, 12:50 PM
ReadFile offers a very basic functionality - reads the specified number of bytes from the current position in the file and updates the file pointer.
ReadFileScatter is useful only in specific types of applications (like database servers).
You would be better off using a higher-level method of accessing the file, for example ifstream class from the C++ standard library.
ginzomo
June 6th, 2005, 09:29 PM
thanx...!
i believe ifstream is the most suitable way...however,i think i'm not so familiar with windows application programming and i'm still getting error on spawning error cl.exe.
is there any reference for full source code?
thanx again!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.