| | |
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 array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






