c# - Reading Strings From An Uploaded File -


this question has answer here:

i have file containing column of numbers wish read string. file, however, not being imported using location on hard disk, rather it's being uploaded via fileupload control.

i wondering if there way read in text file. i've looked streamreader, requires have string that's path name of file.

is there way around this?

thanks :)

a streamreader requires stream, not path. based on documentation on msdn (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.filecontent.aspx) can use filecontent member of fileupload control , feed streamreader.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -