Home > Net >  C # implementation file to read and write and display the reading and writing progress
C # implementation file to read and write and display the reading and writing progress

Time:10-10

C # implementation file to read and write and display the reading and writing progress

CodePudding user response:

1. Read the schedule,
Open a file stream, stream. Length said the total Length of the file, you read 1000 bytes at a time, the number of computing has read/total Length, again shows percentage,
2. Write a progress
Do you want to write the Numbers n, total to 1000 bytes at a time, calculate the percentage, the percentage showed again,


If you read a one-off, write all the data, this can't do the calculation progress,

CodePudding user response:

Thank you, I feel so to write a little bit of a problem but only so

CodePudding user response:

Add ProcessBar controls

CodePudding user response:

Windows form ProcessBar control Settings MaxValue then read every time calculation under % than update ProcessBar controls the Value Value,

If the need is the web with ajax to handle data and UI modification,

CodePudding user response:

Windows form ProcessBar control Settings MaxValue then each read calculation under % than update ProcessBar controls the Value of Value,
  •  Tags:  
  • C#
  • Related