From a file to an array. - page 2 12 New comment [Deleted] 2020.06.28 10:25 #11 Murray Mbugua: I don't know if I am supposed to open a new topic for this but I have a follow up question. Why is it that this code... ... creates an empty bin file while this one.. ... creates a csv file with the required values? A simple f1 with the cursor on FileWrite said this. Learn using it. William Roeder 2020.06.28 13:36 #12 Murray Mbugua: I don't know if I am supposed to open a new topic for this but I have a follow up question. Why is it that this code... ... creates an empty bin file while this one.. int fileHandle=FileOpen("test one.bin",FILE_READ|FILE_WRITE|FILE_BIN); for (int i=0; i<50; i++){ ⋮ FileWrite(fileHandle,ans); Now you are trying to create a binary file, using a text function. Michael Mureithi Mbugua 2020.06.29 10:20 #13 Nelson Wanyama: You can format your datetime variables to int, then convert them back on reading since This worked. Thanks Michael Mureithi Mbugua 2020.06.29 10:21 #14 William Roeder: Now you are trying to create a binary file, using a text function. **facepalm** thank you. Michael Mureithi Mbugua 2020.06.29 10:21 #15 Thanks for chipping in guys. I completed the script. 12 New comment
I don't know if I am supposed to open a new topic for this but I have a follow up question. Why is it that this code...
... creates an empty bin file while this one..
... creates a csv file with the required values?
A simple f1 with the cursor on FileWrite said this. Learn using it.
I don't know if I am supposed to open a new topic for this but I have a follow up question. Why is it that this code...
... creates an empty bin file while this one..
Now you are trying to create a binary file, using a text function.
You can format your datetime variables to int, then convert them back on reading since
This worked. Thanks
Now you are trying to create a binary file, using a text function.
**facepalm**
thank you.