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

C#

 
GeneralRe: How do I write a "Hello World" string stored in a (*.txt) file to the Console output? Pin
Colin Angus Mackay18-Aug-06 12:27
Colin Angus Mackay18-Aug-06 12:27 
GeneralRe: How do I write a "Hello World" string stored in a (*.txt) file to the Console output? Pin
Ennis Ray Lynch, Jr.18-Aug-06 17:33
Ennis Ray Lynch, Jr.18-Aug-06 17:33 
GeneralRe: How do I write a "Hello World" string stored in a (*.txt) file to the Console output? Pin
Colin Angus Mackay18-Aug-06 23:02
Colin Angus Mackay18-Aug-06 23:02 
GeneralRe: How do I write a "Hello World" string stored in a (*.txt) file to the Console output? Pin
Ennis Ray Lynch, Jr.19-Aug-06 6:57
Ennis Ray Lynch, Jr.19-Aug-06 6:57 
AnswerRe: How do I write a "Hello World" string stored in a (*.txt) file to the Console output? [modified] Pin
ezazazel18-Aug-06 11:18
ezazazel18-Aug-06 11:18 
GeneralRe: How do I write a "Hello World" string stored in a (*.txt) file to the Console output? Pin
...---...18-Aug-06 14:00
...---...18-Aug-06 14:00 
Questionfile copy progress bar Pin
numbers1thru918-Aug-06 5:08
numbers1thru918-Aug-06 5:08 
AnswerRe: file copy progress bar Pin
Judah Gabriel Himango18-Aug-06 5:13
sponsorJudah Gabriel Himango18-Aug-06 5:13 
You won't be able to do a real progress bar with File.Copy because it is synchronous and does not give any feedback as to the overall progress of the operation.

You could easily do this yourself, however. Open the file you want to copy, and create a destination file you want to copy the file to. Read in the source file byte-by-byte, and write those bytes to the destination file. Every few bytes, raise an event indicating the overall progress of the operation. Interested components would simply listen to that event and could update the value of a progress bar if they wanted.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: file copy progress bar Pin
numbers1thru918-Aug-06 5:34
numbers1thru918-Aug-06 5:34 
GeneralRe: file copy progress bar Pin
Judah Gabriel Himango18-Aug-06 5:49
sponsorJudah Gabriel Himango18-Aug-06 5:49 
GeneralRe: file copy progress bar Pin
Mrguoxiang18-Aug-06 6:39
Mrguoxiang18-Aug-06 6:39 
AnswerRe: file copy progress bar Pin
ekynox18-Aug-06 13:25
ekynox18-Aug-06 13:25 
GeneralRe: file copy progress bar Pin
Coding C#19-Aug-06 1:33
Coding C#19-Aug-06 1:33 
GeneralRe: file copy progress bar Pin
ekynox21-Aug-06 2:20
ekynox21-Aug-06 2:20 
GeneralRe: file copy progress bar Pin
Coding C#21-Aug-06 20:14
Coding C#21-Aug-06 20:14 
GeneralRe: file copy progress bar Pin
ekynox22-Aug-06 1:03
ekynox22-Aug-06 1:03 
GeneralRe: file copy progress bar Pin
numbers1thru928-Aug-06 8:03
numbers1thru928-Aug-06 8:03 
QuestionHow to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 4:37
haz1318-Aug-06 4:37 
AnswerRe: How to obtain the index of the last entry in a collection Pin
Gonzalo Brusella18-Aug-06 4:47
Gonzalo Brusella18-Aug-06 4:47 
GeneralRe: How to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 4:50
haz1318-Aug-06 4:50 
GeneralRe: How to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 4:55
haz1318-Aug-06 4:55 
GeneralRe: How to obtain the index of the last entry in a collection Pin
Judah Gabriel Himango18-Aug-06 5:06
sponsorJudah Gabriel Himango18-Aug-06 5:06 
GeneralRe: How to obtain the index of the last entry in a collection Pin
Dustin Metzgar18-Aug-06 5:07
Dustin Metzgar18-Aug-06 5:07 
GeneralRe: How to obtain the index of the last entry in a collection Pin
Judah Gabriel Himango18-Aug-06 5:01
sponsorJudah Gabriel Himango18-Aug-06 5:01 
GeneralRe: How to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 5:13
haz1318-Aug-06 5:13 

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.