03-01-2006 03:31 AM
03-01-2006 03:56 AM
You simply can read from the file in a buffer and send the buffer to the com port:
while ((br = ReadFile (fH, buffer, 1024)) > 0) {
ComWrt (4, buffer, 1024);
}
This is the simplest way. Alternatively you can try iterating directly with ComFromFile in the hope that this function moves the file pointer as long as it reads the file content and sends it to the com port: I have never attempted to do this way so I cannot assure that it will work. In this option, you could also try moving the file pointer with SetFilePtr in case ComFromFile does not.