你信吗?
怎么判断execl中除了有数据的行数,去除空行? --------------------编程问答-------------------- readline=‘’ --------------------编程问答--------------------这是一个属性? --------------------编程问答-------------------- 用流去读文件 读到的行为空 就可以了吧 --------------------编程问答-------------------- 可以给一个简单的DOME吗? --------------------编程问答--------------------
--------------------编程问答-------------------- trim() --------------------编程问答-------------------- 除 --------------------编程问答--------------------
string filePath = @"c:temptest.txt";
string line;
if (File.Exists( filePath ))
{
StreamReader file = null;
try
{
file = new StreamReader( filePath );
while ((line = file.ReadLine()) != null)
{
Console.WriteLine( line );
}
}
finally
{
if (file != null)
file.Close();
}
}
Console.ReadLine();
不是一个字符串,而是一个execl中的某一列 --------------------编程问答--------------------
我试一下,看可以不,先谢谢你的代码
补充:.NET技术 , C#