关于文本文件读写的问题(新手)
最近在用C#做WINCE的东西,在对文件读写是出了问题.
if (!File.Exist("temp.txt"))
{
File.Create("temp.txt");
}
StreamReader sr = new StreamReader("temp.txt");
请问这个语句本身有错误吗?
为什么一运行就到这个地方中断.
最近在用C#做WINCE的东西,在对文件读写是出了问题.
if (!File.Exist("temp.txt"))
{
File.Create("temp.txt");
}
StreamReader sr = new StreamReader("temp.txt");
请问这个语句本身有错误吗?
为什么一运行就到这个地方中断.