C Board  

Go Back   C Board > General Programming Boards > C Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-04-2008, 10:33 PM   #1
Registered User
 
Join Date: Nov 2008
Posts: 5
working with files in C

How to copy data from an existent file to a new file inserting a line numbers at the begining of each line?
The original file are paragraphs and I have to copy the paragraphs into another file inserting a line of numbers on each line.

Example:

original file
ibvevbelfvbeflvhbefvbh
uedvheunv
undojvndfojvndfjvndfjvndfj vdfjnvdjfvn dfvjndfv dfvlndfvjdfvn

dfvjefvnef
efgioergerngenfg


copy of the original file into the new one
1. ibvevbelfvbeflvhbefvbh
2. uedvheunv
3. undojvndfojvndfjvndfjvndfj vdfjnvdjfvn dfvjndfv dfvlndfvjdfvn
4.
5. dfvjefvnef
6. efgioergerngenfg

and so forth

thanks,
dallo07 is offline  
Old 12-04-2008, 10:36 PM   #2
Jack of many languages
 
Join Date: Nov 2007
Location: Katy, Texas
Posts: 1,929
Did you not like our responses to your same question in your other post???

copy data from one file to another
__________________
Mac and Windows cross platform programmer. Ruby lover.

Memorable Quotes From Recent Posts:

I can't remember.
Dino is offline  
Old 12-04-2008, 11:12 PM   #3
Registered User
 
Join Date: Sep 2008
Location: St. Petersburg, FL
Posts: 35
haha Dino, I don't think he read it.
kbat82 is offline  
Closed Thread

Tags
copy, file, modify

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Deployment and DLL/OCX Files? dfghjk C++ Programming 5 06-16-2008 02:47 AM
Ressources files mikahell Windows Programming 4 06-19-2006 06:50 AM
Working with DLL files... Devil Panther Windows Programming 8 11-15-2004 12:42 AM
working with resource files the Wookie Windows Programming 4 02-01-2003 10:26 AM
Dos commands hehe Carp A Brief History of Cprogramming.com 2 01-17-2003 02:51 PM


All times are GMT -6. The time now is 05:02 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22