Hello, i have a project which requires that i work with three files.
two files are text and one file is .dat
Currently I have been successful at creating the dat and one of the texts. The project is a bit menu driven and is about stocks, when the program starts, if there is no dat file it creates one, however this dat will be empty, so the data is stored in a text and the program gives the option to the user to import a file. The text that i mentioned about outputs any changes made to the dat.
Anyways, the text that i need to import is made in the following format without any headers, it is just numbers:
(the file has not been made)
stocknumber (100-999)Low(lowest price from last year), High(from last year), Current Price, Change since last trading day.
Can anyone come up with a loop to read the the data from the file and read it into the dat?