Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-27-2005, 11:05 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 21

Rep: Reputation: 15
writing and reading from a file!

i want 5 lines to be shown on the screen after each act of the user. i don't want to rewrite it every time so i want to save them in a file and read from file whenever i want them.
how can i do that
Old 12-27-2005, 02:33 PM   #2
Registered: Dec 2005
Distribution: Slackware
Posts: 151

Rep: Reputation: 30
okay. I'm ready and willing to help on a programming question, but how about telling us what language you're using?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Binary reading/writing in cpp kornerr Programming 1 11-27-2005 08:09 PM
BASH script Ė reading and writing variables to a separate file morrolan Programming 10 09-20-2005 08:45 AM reading and writing to a text file simultaneously mrobertson Programming 3 09-08-2005 01:30 PM
C File reading and writing AbhishekSamuel Programming 3 05-03-2005 04:59 PM
Help reading and writing to file xiste Programming 1 04-15-2005 01:43 AM

All times are GMT -5. The time now is 12:52 AM.

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