im trying to allow users to openly edit the output of the program, for example.
i would output the contents of a file onto the consul, and then the user can edit those contents and then save the changes back into the file. how do i do that?
the actual text in the file. so if the file had "HELLO" the user could delete the "ELLO" and replace it with "I" so the file now holds "HI".
btw it will be an html file not a text file.
much easier if it is a text file, I'm sure there are c++ libraries out there that could help with xml files if you prefer that, I have no idea about html.
just allows me to save a variable filename. i need to know to the have the text within the file be outputted by the program, allow the user to DIRECTLY edit the text, and save the changes preferably as they are made, but after save is fine.
Hmm.. here's a piece of code you may find useful. Its rather limited in the sense that you can only write and move backwards using backspace (it won't delete the keys, but you can do it yourself). This code outputs whatever is in the console in exact way. The APIs used can be consulted from MSDN. happy coding.