Filestream and BinaryWriter
-
I have a file called sample.doc in c:. I want to save the D: by using Filestream and BinaryWriter. pls give the code ASAP
-
I have a file called sample.doc in c:. I want to save the D: by using Filestream and BinaryWriter. pls give the code ASAP
http://msdn2.microsoft.com/en-us/library/system.io.filestream(VS.71).aspx[^] You ll get the code here..
-
I have a file called sample.doc in c:. I want to save the D: by using Filestream and BinaryWriter. pls give the code ASAP
the above post probably covers the api you need for filestream and binarywrite. so my post is just to point out it would be easier to use FileInfo and FileInfo.CopyTo if your just copying the file and dont want to edit it.
FileInfo tes = new FileInfo(StrFilePath); if (!tes.Exists) return; tes.CopyTo(StrDestPath);
or some such off the top of myhead