P
Pai
Hello there,
I have been trying to read a document file into a byte array...
using the following code..., I wanted to do the same using Stream but
i am not sure how to make the same reference to a file.
FileInfo fi = new FileInfo("C:\\test.doc");
FileStream my_file = fi.OpenRead();
byte[] contents = new byte[my_file.Length];
my_file.Read (contents,0, (int)my_file.Length);
my_file.Close();
I am unable to go ahead.... lost![Frown :( :(](/styles/default/custom/smilies/frown.gif)
Please help
Kind Regards,
Srikanth Pai
I have been trying to read a document file into a byte array...
using the following code..., I wanted to do the same using Stream but
i am not sure how to make the same reference to a file.
FileInfo fi = new FileInfo("C:\\test.doc");
FileStream my_file = fi.OpenRead();
byte[] contents = new byte[my_file.Length];
my_file.Read (contents,0, (int)my_file.Length);
my_file.Close();
I am unable to go ahead.... lost
![Frown :( :(](/styles/default/custom/smilies/frown.gif)
Please help
Kind Regards,
Srikanth Pai