当将文本文件读入列表时,将其解开 [英] Unwrap text in a text file when its being read into a list

查看:83
本文介绍了当将文本文件读入列表时,将其解开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#中,有一种方法可以在我将其读入List的同时删除文本文件中的文本换行.使用ReadLines?


解决方案

能否举一个想要实现的示例.

是否要让所有行都以."结尾? (句号)作为您列表中的新成员<>集合


Is there a way in c# to remove the text wrap in a text file whilst I'm reading it into a List<> using ReadLines?


解决方案

Can you give an example you want to achieve. 

Is it like you want to have all the lines ending with '.' (period) as a new member in your List<> collection


这篇关于当将文本文件读入列表时,将其解开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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