LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2004, 08:44 PM   #1
dfownz
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
Saving as a file in C++


Hey,

I'm gonna try and make a console text editor.....to keep up my lack of skill and add to it

Anyways, I need to know how to save as .txt, how to find .txt files, and then how to open them and edit them.

I'm on slackware (Linux) and i have gcc and g++ so it doesn't matter which I use. Also, can someone tell me how to look for certain key stroke-combinations. I would like to use ctrl+S to save, ctrl+O to open....on and on.

Thanks,

DF
 
Old 07-02-2004, 09:29 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
For keystrokes, see the ncurses programming howto.
For saving and reading a file, see "info libc", especially the "I/O on Streams" and related sections, for finding files, see the "File System Interface" section. See also according manpages of the functions you find useful from libc infopage.

Also "info iostream" might be useful if you are working with C++ instead of C.
 
Old 07-03-2004, 07:39 AM   #3
dfownz
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
awesome thanks!!

is ncurses c/c++ ?

[/noob question]
 
Old 07-03-2004, 08:39 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
It is a C library that also has a C++ interface.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE File Associations Not Saving barkers Linux - Software 0 08-26-2005 07:55 AM
Saving file in Kernel nox9colt45 Linux - Newbie 11 03-20-2005 06:16 PM
saving file blackzone Programming 5 01-21-2005 05:51 PM
saving file darkangel29 Linux - Newbie 2 11-25-2004 01:16 PM
Saving file as PDF crash89 Linux - General 2 09-05-2001 09:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration