Board index » cppbuilder » Question on searching/writing to a text file
|
JoeBlow
CBuilder Developer |
Question on searching/writing to a text file2005-07-09 09:31:00 AM cppbuilder40 I have C++Builder 5 and need assistance in a task. I have a text file that I am opening with open("filename.txt",O_RDWR,O_TEXT); Once this is open I need to populate some fields in the GUI with values read from the file. I need to search for particular strings and then get the values. For example, open the file, search for "Tree_type=Spruce", and place the word Spruce into the TEdit I have. The user can then edit that info and press Save to write the new value to the text file. For instance if they change Spruce to Maple, the file would read "Tree_type=Maple" once they save. I don't care if the values have not changed, just write all of them anyway. So, I was wondering if I am starting off correctly or not. Code skill level is neophyte (obviously), but am not looking for someone to post the entire answer...just steer me in the right direction with a few key command references. Thanks |
