Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello,

I need to create a simple text editor that can open, edit and save pcode files.
I have to use the curses library for this. Could you please give me a snippet of this program that can at least open and save the file? Thank you very much.
Posted
Comments
Sergey Alexandrovich Kryukov 13-Sep-15 23:14pm    
Sorry, this is not a code-writing service. "How can I do..." is not a real question.
—SA
PinkPrint 14-Sep-15 1:31am    
SA, that's why I asked for a snippet and not the entire code. Some people need to get off their high horse and understand that some people have a hard time at the beginning, that's why they seek the help of their community so that they can take the knowledge and stand on their feet. Thanks.
Sergey Alexandrovich Kryukov 14-Sep-15 3:12am    
This is not a suitable attitude. Why do you think that "having hard time" along should give you want you want? Those people "on high horse", even if they exist, certainly did all their work by themselves, even if for you it might be hard to believe. Most experts know when to help and when not. We want to help people who really can use help, and not wasting time

But again, I explained that this is not a code-writing service. That includes snippets. We do write snippets, but not on the order, only when it helps to formulate the answer to a question.

—SA
chandanadhikari 14-Sep-15 1:57am    
hi,
just googled and found :
http://sandyeditor.sourceforge.net/
sandy is opensource editor so maybe its code can show you how they made it. maybe not exactly what you were looking for but can certainly give some guidance.
PinkPrint 14-Sep-15 14:40pm    
Thank you.

1 solution

Please make an effort to do your own research: https://www.google.com/search?q=c%20open%20file[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900