Read/Write to txt file as Database
Posted on 2014-09-24
Hi folks I'm trying to use a c++ program to write and read from a text file as if it was a simple database. What I'm building is a calendar of appointments, so I would need to write to several files, like one for each month and ten lines for each day being one line per appointments.
I'm just starting C++ so I'm a complete novice, I'm building using Embarcadero X6, so the Gui part is not that much of a problem to create, but the file read and write part is showing itself more chalenging than I thought it would.
Is ther a way to write to a certain line in a file? Is there a way to read to a certain line of the same file?
Any help with this would be much appreciated since I'm kind of lost to begin with.