Asp.net C#找不到文件 [英] Asp.net C# can't find file
问题描述
嘿,我正在为我的程序开发一个站点。我希望能够在我的桌面上获得某些内容的生活信息。有多个文件可供选择,我需要用户输入代码,它将开始显示实时Feed。事情是它没有拿起我在文件夹中的文件。如果有人可以提供帮助,请提前谢谢
-Just加入codeproject Logan
我尝试了什么: <如果(File.Exists(C:\\Users\\Logan \\Documents) Studio 2015 \\Projects \\TFR \\data \\codes+ TextBox1.Text +。txt))
{
// Console.Beep();
}
其他
{
Console.Beep();
}
对不起家伙,这是一个真正愚蠢的问题。我忘记了文件路径末尾的\\ ...
Hey, im developing a site for my program. I want to be able to get a life feed of something on my desktop going on to the site. There is multiple files to choose from and I need to user to type in a code and it will start showing the live feed. The thing is though its not picking up files I have in the folder. If anybody could help, thanks in advance
-Just joined codeproject Logan
What I have tried:
if (File.Exists("C:\\Users\\Logan\\Documents\\Visual Studio 2015\\Projects\\TFR\\data\\codes" + TextBox1.Text+".txt")) { // Console.Beep(); } else { Console.Beep(); }
Sorry guys, this way a real stupid question. I forgot the \\ at the end of the file path...
这篇关于Asp.net C#找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!