Visit the LQ Articles and Editorials section
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 10-06-2007, 04:53 PM   #1
LQ Newbie
Registered: Oct 2007
Posts: 5

Rep: Reputation: 0
how to create a new file including content from reading another file !?

Hi, I am just confused how we can create a file when we read a exist file. For example: I got a file named a, so when I read the file and create a new file; which is included one line with the name as file "a"...Could any pros help me out this problem !? Thanks a lot.
Old 10-06-2007, 05:13 PM   #2
LQ Newbie
Registered: Aug 2007
Posts: 6

Rep: Reputation: 1
programming guide's

Bruce Eckels Thinking in C++/Java are free ebook or html download that explains beginner programming/computer science I+II concepts such as file input and output. iostream and fstream are 2 header files used for c++ but this could have changed.

Hope this helps;

Last edited by rico001; 10-06-2007 at 05:15 PM.
Old 10-06-2007, 05:33 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
cat oldfile > newfile

Or maybe I did not understand your question???


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
How to view content of RPM package using RPM command? Micro420 Linux - General 5 07-18-2010 04:03 PM
LXer: Create iPod video content on the Java platform LXer Syndicated Linux News 0 02-10-2006 05:16 PM
How can I create a new command? soner Linux - General 2 10-26-2004 03:13 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
Apache serving content after the content is removed? jrbush82 Linux - Software 6 05-05-2004 05:39 AM

All times are GMT -5. The time now is 04:27 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