Link to home
Start Free TrialLog in
Avatar of VD1234
VD1234

asked on

Reading the inputstream of the uplaoded file in ASP.NET

I use a fileupload control and upload the ocntents of a file.
How do I read the firstline of the file. Basically I want to do something similar to the Readline method of the StreamReader Class.
I get the Filestream as follows: Then how can I read the firstline form the file?
Stream s = fileUpload1.PostedFile.InputStream;
Please help. Thanks in advance.



ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin