I'm trying improve my C++ connect four game by having it "learn" from its mistakes. To do this I'm gonna have it write to a file certain positions and how it handled them wrong so it doesn't make the same mistake twice. Since after awhile the number of positions will be increasing, I want the program to be able to read from the file quickly or else all of its calculations will get bogged down. Anyone know if there is a way to decrease file reading times, like possibly writing and reading in binary?



LinkBack URL
About LinkBacks



Just out of curiosity, IS there anyway to speed up file reading and writing to a text file? 