Saving txt from console

This is a discussion on Saving txt from console within the Windows Programming forums, part of the Platform Specific Boards category; Hi, i'm trying to finish up coding this silly console based C++ code editor of mine. It can do everyday ...

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.