Problem making Textpad

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 8
Reputation: rishabh2011 is an unknown quantity at this point 
Solved Threads: 0
rishabh2011 rishabh2011 is offline Offline
Newbie Poster

Problem making Textpad

 
0
  #1
Oct 3rd, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,783
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 745
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Problem making Textpad

 
1
  #2
Oct 3rd, 2008
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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC