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 ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    362

    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.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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
    Posts
    1

    Smile

    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
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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.
    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, 04: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, 09:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21