sstream2.WriteLine(sstream.ReadLine)
Loopsstream.Close()
sstream.Close()
more info:
the destination file E:\eula.txt has more bytes (file size ) than the source (c:\eula.txt) please i need help
if these are textfile, try this:
Dim theReader as new StreamReader("file.txt") Dim theWriter as new StreamWriter("copyfile.txt") theWriter.Write(theReader.ReadToEnd()) theWriter.Close() theReader.Close() |
or if you want to copy a file, just use:
System.IO.File.Copy(source, dest);
ok i tried but the file is different bytes again
the source file is 38060 bytes
the destination 38788 bytes , how could the destination file had a different bytes copied?
no idea, working well here :)
if you want to copy a file, just do:
System.IO.File.Copy(Source, Destination);