So, I'm making a database program. To accomodate the varying number of entries, I have decided to input the number of entries from the database TXT file, to use as the upper bounds in arrays/for loops. I got an error saying this:
Turing Error wrote:
Get attempted on incompatible stream number 1
What does this mean?
Here is the offending code:
code:
var num_entries : int
open : database, "Database.txt", put
get : database, num_entries