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

C#

 
QuestionMonitor LAN activity Pin
Stefano Alini7-Mar-06 6:46
Stefano Alini7-Mar-06 6:46 
AnswerRe: Monitor LAN activity Pin
Judah Gabriel Himango7-Mar-06 7:58
sponsorJudah Gabriel Himango7-Mar-06 7:58 
QuestionRead large text files with c# Pin
MrWeiland7-Mar-06 6:13
MrWeiland7-Mar-06 6:13 
AnswerRe: Read large text files with c# Pin
Werdna7-Mar-06 6:49
Werdna7-Mar-06 6:49 
GeneralRe: Read large text files with c# Pin
MrWeiland7-Mar-06 21:41
MrWeiland7-Mar-06 21:41 
AnswerRe: Read large text files with c# Pin
Guffa7-Mar-06 6:54
Guffa7-Mar-06 6:54 
GeneralRe: Read large text files with c# Pin
MrWeiland7-Mar-06 21:57
MrWeiland7-Mar-06 21:57 
AnswerRe: Read large text files with c# Pin
Guffa7-Mar-06 23:16
Guffa7-Mar-06 23:16 
Yes, you can use the Seek method to go to any position in the file.

Note: There is an error in this comment in the code:

//reading a block from the file, here we could start for example on 2000 instead of pos 0 //(fs.Read(buffer,2000,8192))


Using that call would result in an error message. As the size of the array is 8192 bytes, you can't read 8192 bytes and put them in the array from index 2000. Between index 2000 and the end of the array there is only room for 6192 bytes.

---
b { font-weight: normal; }

GeneralRe: Read large text files with c# Pin
MrWeiland8-Mar-06 0:08
MrWeiland8-Mar-06 0:08 
AnswerRe: Read large text files with c# Pin
JoeSox7-Mar-06 7:51
JoeSox7-Mar-06 7:51 
GeneralRe: Read large text files with c# Pin
MrWeiland7-Mar-06 21:43
MrWeiland7-Mar-06 21:43 
GeneralRe: Read large text files with c# Pin
JoeSox8-Mar-06 3:28
JoeSox8-Mar-06 3:28 
GeneralRe: Read large text files with c# Pin
hackerhcm7-Mar-06 23:44
hackerhcm7-Mar-06 23:44 
GeneralRe: Read large text files with c# Pin
JoeSox8-Mar-06 3:25
JoeSox8-Mar-06 3:25 
QuestionHow to get the real Length(size) of UTF8 String? Pin
pmasknguyen7-Mar-06 5:56
pmasknguyen7-Mar-06 5:56 
AnswerRe: How to get the real Length of UTF8 String? Pin
Dario Solera7-Mar-06 5:57
Dario Solera7-Mar-06 5:57 
AnswerRe: How to get the real Length(size) of UTF8 String? Pin
Guffa7-Mar-06 6:57
Guffa7-Mar-06 6:57 
GeneralRe: How to get the real Length(size) of UTF8 String? Pin
pmasknguyen7-Mar-06 13:20
pmasknguyen7-Mar-06 13:20 
QuestionGraphics.MeasureString - string with space at the end problem. Pin
sebaaaa7-Mar-06 5:54
sebaaaa7-Mar-06 5:54 
AnswerRe: Graphics.MeasureString - string with space at the end problem. Pin
Werdna7-Mar-06 6:50
Werdna7-Mar-06 6:50 
QuestionOn Screen Keyboard Pin
royk1237-Mar-06 5:26
royk1237-Mar-06 5:26 
AnswerRe: On Screen Keyboard Pin
Christian Graus7-Mar-06 5:39
protectorChristian Graus7-Mar-06 5:39 
AnswerRe: On Screen Keyboard Pin
letmethink7-Mar-06 5:58
letmethink7-Mar-06 5:58 
QuestionNeed Help for a parser Pin
mitko57-Mar-06 5:16
mitko57-Mar-06 5:16 
AnswerRe: Need Help for a parser Pin
Judah Gabriel Himango7-Mar-06 5:19
sponsorJudah Gabriel Himango7-Mar-06 5:19 

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.