Basically i'v got a program that i need to update itself.
Anytime you use it you enter various variables and it predicts something. Then i want you to input the variable you got from the outside source and it can update itself.
(Since the outside source has a random factor, my program will be outputting the lowest, highest, medium, and possibly most common random medium)
Well i can do that, my problem is File IO. Can someone give me an example of a working Dos program that reads a "format" persay? INI type would be great, but anything that is semi organised so i can look at it in a txt, and that is easily readable by a program, will do.
I need it to hold multiple variable names with values, like ini's (item=value).
Subcategories would be "nice", but really at this time since it is so none dynamic i could just write the names with categories (category1_name1=value, category2_name1=value)
Big thanks to anyone who posts an example code.
What specifically i would find helpful is a working code that reads a variable from a file, ie it searches and reads "mynameis=john" and prints the value "john", then asks you for your name and writes that to another variable in the same fashion. That should be plenty to get me going.
Thanks a ton again if anyone can do this, thanks! (File IO has always .......... slapped me around for some reason lol)



LinkBack URL
About LinkBacks


