17.03.2009, 14:27
Lots of things wrong with that too.. for example, why do you read from a file you only need to write to? Why aren't you looping through all the available vehicles? Why do you try to write to a file when it's opened in io_read mode (that only allows reading a file..)? Why do you close a the file handler when you need it later on in the loop?
Try looking at some tutorials first
Try looking at some tutorials first