LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-06-2007, 03:53 PM   #1
silverhand
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, 04:13 PM   #2
rico001
Member
 
Registered: Aug 2007
Distribution: TwisterOS lite, Linux in a VM
Posts: 94
Blog Entries: 3

Rep: Reputation: 3
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;
rico001

Last edited by rico001; 10-06-2007 at 04:15 PM.
 
Old 10-06-2007, 04:33 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
cat oldfile > newfile

Or maybe I did not understand your question???
 
  


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

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

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