Filestream

talahaski

Active member
Joined
Apr 29, 2004
Messages
35
Anybody know whats wrong with this code.

Dim PrimaryFileio as new Filestream(PrimaryFile,filemode.open)

PrimaryFile is passed into the function ByVal.
 
Sring

PrimaryFile is a string thats passed into this function.


Private function CheckDup(byval Primaryfile as string) as integer



Ive added a messagebox before the line of code with the problem that prints out the value in PrimaryFile and its value contains the full file path correctly.

The value passed in is taken from an openfiledialog.filename
 
Got IT

Apparently I had to specify FileAccess.read. I would have assumed this was implied in the fact that Im using filemode.open.
 
Back
Top