Users saving data on a text editor

This is a discussion on Users saving data on a text editor within the C++ Programming forums, part of the General Programming Boards category; Hi. I am trying to make a simple text editor. Although I'm getting somewhere, I need help in one particular ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    3

    Users saving data on a text editor

    Hi. I am trying to make a simple text editor. Although I'm getting somewhere, I need help in one particular thing, how to save. I don't mean how to save the code I typed in the complier, I mean how do users save the document they are working on. If it helps at all I would like the program to save when users press the number 2 (numeric order in commands). If you need any more details about the program just reply to this thread or PM me.

    Also, although I am NOWHERE near it, I will need to find out how to print the document as well.

    Thanks, this really helps.

  2. #2
    Registered Trademark
    Join Date
    Apr 2005
    Posts
    19
    to save a file, u just need to get the data from the txt area and put it in a file. which option u chose to do that with is up to you (file choosers, predefined file names, etc...).

    as for printing, i dunno. look it up online as u have been for quite some time now.
    pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly

  3. #3
    Registered User
    Join Date
    Aug 2004
    Location
    San Diego, CA
    Posts
    313
    What are you working with? Common controls, or..?

  4. #4
    Registered User
    Join Date
    Apr 2005
    Posts
    3
    Quote Originally Posted by Lithorien
    What are you working with? Common controls, or..?
    Complier = Dev C++ if thats what you mean. Really all I want is to make a simple text editor, almost like notepad in a DOS screen that can save and print documents.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Text Editor
    By MB1 in forum C++ Programming
    Replies: 6
    Last Post: 12-13-2005, 02:48 PM
  2. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  4. C diamonds and perls :)
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 05-16-2003, 11:19 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM

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