如何将一个文本文件分成3个文本文件 [英] How to separate a text file into 3 text file

查看:105
本文介绍了如何将一个文本文件分成3个文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将文本文件分成三个单独的文件,每个文件有10行.我希望使用C#程序允许我创建这三个文件?

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 ?

推荐答案

所以您想将一个文件分成三个文件,每个文件有10行.您过度简化的要求引起了几个问题:

1.这是否意味着原始文件将始终包含三十行?
2.控制分离的标准是什么?
3.关于如何订购输出的任何想法?
4.原始文件的一行可能会变成一个以上的文件吗?

由于您不在乎告诉我们您真正要实现的目标,因此在这里获得任何具体帮助的可能性很小.

问候,

-MRB
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


这篇关于如何将一个文本文件分成3个文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆