|
@Kerlingen
no, there is no error.
Did you try the code? I guess you didn't.
In the first program the last char written is 0x0, thus there is no endless loop. Also, it writes directly to stdout and to the file, not only when the buffer is full. At least, it works with the two small programs above under Win7. As I've written, I'm pretty sure you can adjust it to your needs. If you can't get it to work, I'd be interessted in your input file.
Best regards
*RemedY*
|