Orlando Llanes wrote:
I get the following error with the program listed below:
0c:/nano/tmp2.exe: could not read all the data from file `tmp.txt' in `BlockRead' (#414)
Seems that it prints the first character, but then ends unexpectedly. The file tmp.txt is below the program.
This seems to be due to a DJGPP bug (fflush() clobbers the file position -- or is this allowed, any standard experts here?). For now, I put a work-around in the RTS for Dos systems. Perhaps this should better be done by an autoconf test, but I don't know how to do this (any autoconf experts here?).
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan