-
Saving txt from console
Hi, i'm trying to finish up coding this silly console based C++ code editor of mine. It can do everyday stuff like putting tabs when u hit '{' and <enter>, highlight the keywords, but it cannot yet save the text the user has typed. i tried funcs like PeekConsoleOutput() to read the entire console and write the data to a file, but it didn't work. Could anyone who've done this kinda thing before please give me some help?
thx.
-
Why don't you save the data which is stored in memory, which you used to create the display in the first place?
-
i m also facing the same problem, but according to me we have to trace the pointer
where the cursor exactly is and then shift the values acc to that
-
Welcome to the boards.
Please read the forum guidelines which can be found here:
http://cboard.cprogramming.com/annou...t.php?f=7&a=51
In particular, please note that we generally don't allow ancient threads such as this one to be resurrected, so I'm closing this.
Please create a new thread in the most appropriate board detailing your problem and any code you are having difficulty with.