如何使用c#web应用程序从安装到系统的USB笔式驱动器读取文本文件 [英] how to read a textfile from usb pen drive mounted to a system using c#web application

查看:71
本文介绍了如何使用c#web应用程序从安装到系统的USB笔式驱动器读取文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我如何使用c#.net从USB笔驱动器读取文本文件中的值.

我可以在这里使用System.IO.Ports SerialClass吗?

提前谢谢.

[edit]寻求紧急帮助是很不礼貌的.对您而言,这仅是紧迫的事情,而不是我们[/edit]

Can any one please help me how to read a value from textfile from USB pen drive using c#.net.

Here can i use System.IO.Ports SerialClass?

Thanks in advance.

[edit]It is very rude to ask for urgent help. Its only urgent to you, not us[/edit]

推荐答案

什么是USB笔式驱动器?
What is a USB pen drive? Does not that show up just as a disk?


是的,您会正确地将其检测为逻辑磁盘分区中的逻辑驱动器.我可以使用任何COM对象从USB pendrive读取文本文件吗?

我需要使用c#asp.net
Yes you are correct it will detect as a logical drive in logicaldisk parttition. can i use any COM objects to read a text file from USB pendrive.

This i need to achieve using c# asp.net


不要实现"answer"来重申您的问题.我不确定有人不知道什么是笔驱动器的可能性.

您将需要使用C ++编写ActiveX控件,或者,如果您确定用户已安装.NET,则可能需要编写.NET.ASP.NET无法执行您想要的操作.您最能做的就是让您的用户从他们的笔式驱动器中手动上传文件.
Don''t push ''answer'' to reiterate your question. I''m not sure how it''s possible that someone doesn''t know what a pen drive is.

you will need to write an ActiveX control in C++, or perhaps in .NET if yuo''re sure your users have .NET installed, ASP.NET cannot do what you want. The closest you can do, is ask your users to manually upload the file from their pen drive.


这篇关于如何使用c#web应用程序从安装到系统的USB笔式驱动器读取文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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