dba123
asked on
Value cannot be null. Parameter name: stream
Value cannot be null.
Parameter name: stream
I'm not sure how to resolve this. I have referenced filefs but before this was working fine:
Dim file As New IO.FileInfo(sIncomingfile)
Dim filefs As IO.FileStream = Nothing
Dim reader As New IO.StreamReader(filefs) <-------- Problem is that it doesn't like Nothing
Parameter name: stream
I'm not sure how to resolve this. I have referenced filefs but before this was working fine:
Dim file As New IO.FileInfo(sIncomingfile)
Dim filefs As IO.FileStream = Nothing
Dim reader As New IO.StreamReader(filefs) <-------- Problem is that it doesn't like Nothing
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
your version also worked so I'll reward the points. Thanks!
ASKER
Dim file As New IO.FileInfo(sIncomingfile)
Dim filefs As New IO.FileStream(file.FullNam