LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to create a new file including content from reading another file !? (https://www.linuxquestions.org/questions/programming-9/how-to-create-a-new-file-including-content-from-reading-another-file-589941/)

silverhand 10-06-2007 03:53 PM

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. :study:

rico001 10-06-2007 04:13 PM

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

pixellany 10-06-2007 04:33 PM

cat oldfile > newfile

Or maybe I did not understand your question???


All times are GMT -5. The time now is 06:36 AM.