A
AMP
Hello,
I am trying to see if a FileStream Opened using an"if" clause:
FileStream infile = new FileStream("c:\\blink2.txt", FileMode.Open,
FileAccess.Read, FileShare.Read);
if (infile==0).....
but that doesnt work (they dont compare)
ALSO,
FileStream(......) is a constructor, but behaves like a Method. I'm a
little confused
PLUS,
more importantly,I'm trying to use a Streamreader with the FileStream:
TextReader tr = new StreamReader("infile");
Is this correct?Do I need both a FileStream AND a Streamreader?
Thanks,
Mike
I am trying to see if a FileStream Opened using an"if" clause:
FileStream infile = new FileStream("c:\\blink2.txt", FileMode.Open,
FileAccess.Read, FileShare.Read);
if (infile==0).....
but that doesnt work (they dont compare)
ALSO,
FileStream(......) is a constructor, but behaves like a Method. I'm a
little confused
PLUS,
more importantly,I'm trying to use a Streamreader with the FileStream:
TextReader tr = new StreamReader("infile");
Is this correct?Do I need both a FileStream AND a Streamreader?
Thanks,
Mike