Click here to Skip to main content
15,904,653 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How can I separate the text file into three separate files with 10 lines each. I want the program in C# that allows me to create these three files ?
Posted
Comments
Manas Bhardwaj 23-Jul-11 15:18pm    
any effort?
alrosan 23-Jul-11 15:29pm    
how seperate the text file into 3 files with 10 lines??
YvesDaoust 24-Jul-11 4:03am    
@fnoo: you are welcome

1 solution

So you want to separate one file into three files with 10 lines each. A couple of questions arise from your over simplified request:

1. Does this mean the original file will always have thirty lines?
2. What are the criteria that control the separation?
3. Any thoughts on how the output should be ordered?
4. Is it possible that one line of the original file will make it into more than one file?

Since you didn't care to tell us what you are really trying to achieve it's not very probable that you'll get any concrete help here.

Regards,

-MRB
 
Share this answer
 
Comments
fnoo 23-Jul-11 16:15pm    
sorry i don't have an internet connection after i put my Q :(
and i try to do it by my self and i do it now thanQ very much :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900