ローカル システムからファイルを読み取り、再度ファイルに書き込みたい。私は次のようなコードを書いています:
byte[] destination = new byte[file.ContentLength];
FileInfo fil = new FileInfo(@"d:\\Projects\\file");
if (!fil.Exists)
{
using (Stream sw = fil.OpenWrite())
{
sw.Write(destination, 0, file.ContentLength);
sw.Close();
}
}
ファイルをダウンロードできますが、ダウンロードしたファイルを読み取ることができません。どんな助けでも大歓迎です