| | |
Problem making Textpad
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2008
Posts: 8
Reputation:
Solved Threads: 0
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.
Can ::ios ate do the job. Help me plz....
Secondly how can I open the text file in a different dos window.
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.
![]() |
Other Threads in the C++ Forum
- Previous Thread: Please help if you can i am stuck!
- Next Thread: global variable
| Thread Tools | Search this Thread |
api application array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete desktop developer directshow dll email encryption error file format forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream image input int integer java lib linux loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct studio template templates text tree url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






