Thread: Saving txt from console

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Kurunegala Colony, Sri Lanka, Sri Lanka

    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?
    My amature IT Blog:
    My Flash games:

    (and, sorry for my amateur English)

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Why don't you save the data which is stored in memory, which you used to create the display in the first place?

  3. #3
    Registered User
    Join Date
    Aug 2008


    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

  4. #4
    Join Date
    Jan 2002
    Welcome to the boards.

    Please read the forum guidelines which can be found here:

    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.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Saving a Console Application!!
    By ekweb in forum C++ Programming
    Replies: 10
    Last Post: 01-29-2006, 05:40 PM
  2. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  3. Saving and opening txt file...
    By Kitu in forum C++ Programming
    Replies: 6
    Last Post: 08-15-2004, 12:01 PM
  4. saving a game in console mode
    By Leeman_s in forum C++ Programming
    Replies: 8
    Last Post: 05-08-2002, 06:30 PM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM