Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
AnswerRe: hello all i need help Pin
albCode11-Apr-06 20:45
albCode11-Apr-06 20:45 
QuestionUpdating ListView with Thread (+ extra thread questions) Pin
Skoder11-Apr-06 16:10
Skoder11-Apr-06 16:10 
AnswerRe: Updating ListView with Thread (+ extra thread questions) Pin
S. Senthil Kumar11-Apr-06 17:46
S. Senthil Kumar11-Apr-06 17:46 
QuestionHow to make a copy of a binary file without using Copy function? Pin
tranthuyen11-Apr-06 16:10
tranthuyen11-Apr-06 16:10 
AnswerRe: How to make a copy of a binary file without using Copy function? Pin
Christian Graus11-Apr-06 16:56
protectorChristian Graus11-Apr-06 16:56 
GeneralRe: How to make a copy of a binary file without using Copy function? Pin
mav.northwind11-Apr-06 23:37
mav.northwind11-Apr-06 23:37 
AnswerRe: How to make a copy of a binary file without using Copy function? Pin
alexey N11-Apr-06 18:28
alexey N11-Apr-06 18:28 
AnswerRe: How to make a copy of a binary file without using Copy function? Pin
mav.northwind11-Apr-06 23:35
mav.northwind11-Apr-06 23:35 
As alexey_n already suggested, you can use StreamReader/Writer.
You create a byte[] buffer and fill it with data from the source file. Then you write the buffer to the target stream.
Repeat as long as the source stream hasn't reached its end.

Btw. if you really want a replacement for Copy, do not forget to set the file properties (modification date for example) after copying the content. The FileInfo class has what you need for this task.

Regards,
mav

--
Black holes are the places where god divided by 0...
QuestionHow to ftp upload a .zip (binary) file? Pin
tranthuyen11-Apr-06 16:07
tranthuyen11-Apr-06 16:07 
QuestionHow to use Flash with C# Pin
mm31011-Apr-06 15:36
mm31011-Apr-06 15:36 
AnswerRe: How to use Flash with C# Pin
Christian Graus11-Apr-06 16:55
protectorChristian Graus11-Apr-06 16:55 
JokeRe: How to use Flash with C# Pin
leppie11-Apr-06 21:38
leppie11-Apr-06 21:38 
GeneralRe: How to use Flash with C# Pin
Christian Graus12-Apr-06 1:25
protectorChristian Graus12-Apr-06 1:25 
QuestionAdding Controls Pin
rahultaing11-Apr-06 15:03
rahultaing11-Apr-06 15:03 
AnswerRe: Adding Controls Pin
S. Senthil Kumar11-Apr-06 17:48
S. Senthil Kumar11-Apr-06 17:48 
QuestionControls Pin
rahultaing11-Apr-06 14:33
rahultaing11-Apr-06 14:33 
AnswerRe: Controls Pin
albCode11-Apr-06 21:45
albCode11-Apr-06 21:45 
Questionhelppppppppppp. Pin
lover9111-Apr-06 13:41
lover9111-Apr-06 13:41 
AnswerRe: helppppppppppp. Pin
Christian Graus11-Apr-06 16:54
protectorChristian Graus11-Apr-06 16:54 
QuestionVS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 9:38
hasantayyar11-Apr-06 9:38 
AnswerRe: VS 2005 with netFramework 1.1 ? Pin
Ed.Poore11-Apr-06 10:52
Ed.Poore11-Apr-06 10:52 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 11:17
hasantayyar11-Apr-06 11:17 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
Ed.Poore11-Apr-06 11:22
Ed.Poore11-Apr-06 11:22 
AnswerRe: VS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 11:24
hasantayyar11-Apr-06 11:24 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
Ed.Poore11-Apr-06 11:42
Ed.Poore11-Apr-06 11:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.