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.