110,536
社区成员
发帖
与我相关
我的任务
分享
#region Test
StreamReader din = File.OpenText(@"d:\b.txt"); //估计你的问题在这里,看看你的b.txt的文件路径怎么写的
string userAccount;
string strall = null;
string str = null;
while ((str = din.ReadLine()) != null)
{
strall += str + ",";
}
userAccount = strall;
#endregion
StreamReader din = File.OpenText(@"d:\b.txt"); //估计你的问题在这里,看看你的b.txt的文件路径怎么写的
string userAccount;
string strall = null;
string str = null;
while ((str = din.ReadLine()) != null)
{
strall += str + ",";
}
userAccount = strall;