Closed PhilVince96 closed 2 years ago
That is because you are reading the file that the writer hasn't finished to fully write.
While the writer is 'alive' (not dropped) the file it writes to is incomplete. As when the writer is dropped it updates parts of the files with are not known until every record has been written.
You can add a drop(writer)
before creating your reader and you'll see that it works
That is because you are reading the file that the writer hasn't finished to fully write.
While the writer is 'alive' (not dropped) the file it writes to is incomplete. As when the writer is dropped it updates parts of the files with are not known until every record has been written.
You can add a
drop(writer)
before creating your reader and you'll see that it works
Thank you very much! Good to know that. :D It works now. 👍🏻
Hi,
my program does create a new database (.dbf file) with some records and then tries to read them afterwards. The first part works. When I open the created .dbf in Excel I can see all written records, but the program fails when it tries to read the file which it created. I ran the example print-content.rs with tests/data/line.dbf and tests/data/stations.dbf and it worked just fine. I think maybe the problem lies within the creation of the file, although Excel can handle the created file. Maybe somebody can help me.
Thanks! :)
Error:
Code: