我该怎么办? [英] what should I do here?

查看:90
本文介绍了我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行此代码时:



StreamReader sr = new StreamReader(@G:\ proje\ratings.txt);



我有这个错误:



类型'的未处理异常mscorlib.dll中发生了System.NotSupportedException



附加信息:不支持给定路径的格式。




我该怎么做?

When I run this code:

StreamReader sr = new StreamReader(@"‪G:\proje\ratings.txt");

I have this error:

An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll

Additional information: The given path's format is not supported.


What should I do here?

推荐答案

这个异常被抛到其他地方,不在你显示的行中。请查看此行中可能出现的异常: https:// msdn。 microsoft.com/en-us/library/f2ke0fzy(v=vs.110).aspx [ ^ ]。



更准确地挖掘出来。 />


-SA
This exception was thrown elsewhere, not in the line you show. Please see what exceptions could be thrown in this line: https://msdn.microsoft.com/en-us/library/f2ke0fzy(v=vs.110).aspx[^].

Dig it out more accurately.

—SA


这篇关于我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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