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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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