Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: idea of a very special 'Menuitem' Pin
deanofharvard12-Apr-06 9:32
deanofharvard12-Apr-06 9:32 
QuestionStar Application with Windows Pin
hung_ngole11-Apr-06 18:13
hung_ngole11-Apr-06 18:13 
AnswerRe: Star Application with Windows Pin
alexey N11-Apr-06 18:23
alexey N11-Apr-06 18:23 
Questionhello all i need help Pin
zidan91111-Apr-06 17:46
zidan91111-Apr-06 17:46 
AnswerRe: hello all i need help Pin
chakkara200311-Apr-06 18:11
chakkara200311-Apr-06 18:11 
AnswerRe: hello all i need help Pin
CWIZO11-Apr-06 19:43
CWIZO11-Apr-06 19:43 
GeneralRe: hello all i need help Pin
Bassam Saoud11-Apr-06 19:52
Bassam Saoud11-Apr-06 19:52 
AnswerRe: hello all i need help Pin
HimaBindu Vejella11-Apr-06 19:52
HimaBindu Vejella11-Apr-06 19:52 
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 

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.