943,569 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 552
  • C++ RSS
Oct 3rd, 2008
0

Problem making Textpad

Expand Post »
hi everyone, I am making a textpad(basic textfile creator) in c++(console). It can create text files and then load them. But the problem is that when we load a file it can only show the data but not edit it or write further data. How do I code such that when the textfile is opened the cursor(_) comes at the end of text so that the user can add more text.....,,,,,,.....>>>>>>>
Can ::ios ate do the job. Help me plz....
Secondly how can I open the text file in a different dos window.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rishabh2011 is offline Offline
8 posts
since Jun 2008
Oct 3rd, 2008
1

Re: Problem making Textpad

You're not going to be editing the file directly. Instead use edit it in memory and then save back to the file. As for editing directly in the console window, you're SOL and need to get creative unless you use some non-standard form of controlling the console (such as pdcurses).
Last edited by Narue; Oct 3rd, 2008 at 4:25 pm.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Please help if you can i am stuck!
Next Thread in C++ Forum Timeline: global variable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC