Click here to Skip to main content
15,072,735 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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]
Posted
Updated 22-Apr-10 3:51am
v4

What is a USB pen drive? Does not that show up just as a disk?
   
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
   
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.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900