Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Military (Midnight) DateTime subtraction Pin
PIEBALDconsult8-Feb-09 12:36
mvePIEBALDconsult8-Feb-09 12:36 
AnswerRe: Military (Midnight) DateTime subtraction Pin
Luc Pattyn8-Feb-09 12:50
sitebuilderLuc Pattyn8-Feb-09 12:50 
GeneralRe: Military (Midnight) DateTime subtraction Pin
Guffa8-Feb-09 14:17
Guffa8-Feb-09 14:17 
AnswerRe: Military (Midnight) DateTime subtraction Pin
Luc Pattyn8-Feb-09 14:41
sitebuilderLuc Pattyn8-Feb-09 14:41 
GeneralRe: Military (Midnight) DateTime subtraction Pin
PIEBALDconsult8-Feb-09 15:46
mvePIEBALDconsult8-Feb-09 15:46 
QuestionPosition in char array Pin
Sue19708-Feb-09 7:28
Sue19708-Feb-09 7:28 
AnswerRe: Position in char array Pin
Luc Pattyn8-Feb-09 7:49
sitebuilderLuc Pattyn8-Feb-09 7:49 
GeneralRe: Position in char array Pin
Sue19708-Feb-09 8:15
Sue19708-Feb-09 8:15 
Hi Luc,

Thank you very much for answering. You are right that this code is not the best. It was an example of what I want to do because I do not know how to reposition the stream to start reading again.

With “Large” files I mean over 140 MB. A similar method to the one I posted worked almost so fast as the ReadAllLines and it did not throw any OOM exception.

“ you could throw back the incomplete line at the end of your buffer by repositioning your stream (with reader.BaseStream.Seek”

Could you provide some code to reposition the stream starting either at the end of line 2 (in my example) or at the beginning of the last line (line 3) in the char array, please?

Thank you.
Sue
AnswerRe: Position in char array Pin
Luc Pattyn8-Feb-09 8:38
sitebuilderLuc Pattyn8-Feb-09 8:38 
AnswerRe: Position in char array Pin
PIEBALDconsult8-Feb-09 12:46
mvePIEBALDconsult8-Feb-09 12:46 
GeneralRe: Position in char array Pin
Sue19709-Feb-09 2:23
Sue19709-Feb-09 2:23 
QuestionString Problem Pin
nike_arh8-Feb-09 7:13
nike_arh8-Feb-09 7:13 
AnswerRe: String Problem Pin
Alan N8-Feb-09 7:32
Alan N8-Feb-09 7:32 
GeneralRe: String Problem Pin
nike_arh8-Feb-09 7:41
nike_arh8-Feb-09 7:41 
GeneralRe: String Problem Pin
nike_arh8-Feb-09 8:40
nike_arh8-Feb-09 8:40 
GeneralRe: String Problem Pin
Guffa8-Feb-09 13:19
Guffa8-Feb-09 13:19 
Questionproblem read RTF file image section produce the image Pin
Ravenet8-Feb-09 6:07
Ravenet8-Feb-09 6:07 
AnswerRe: problem read RTF file image section produce the image Pin
Alan N8-Feb-09 8:05
Alan N8-Feb-09 8:05 
GeneralRe: problem read RTF file image section produce the image Pin
Ravenet8-Feb-09 14:50
Ravenet8-Feb-09 14:50 
AnswerRe: problem read RTF file image section produce the image Pin
Jani Giannoudis13-Feb-09 5:34
mvaJani Giannoudis13-Feb-09 5:34 
GeneralRe: problem read RTF file image section produce the image Pin
Ravenet13-Feb-09 5:37
Ravenet13-Feb-09 5:37 
AnswerRe: problem read RTF file image section produce the image Pin
Jani Giannoudis13-Feb-09 6:24
mvaJani Giannoudis13-Feb-09 6:24 
GeneralRe: problem read RTF file image section produce the image Pin
Ravenet13-Feb-09 15:28
Ravenet13-Feb-09 15:28 
AnswerRe: problem read RTF file image section produce the image Pin
Jani Giannoudis13-Feb-09 21:04
mvaJani Giannoudis13-Feb-09 21:04 
GeneralRe: problem read RTF file image section produce the image Pin
Ravenet13-Feb-09 21:11
Ravenet13-Feb-09 21:11 

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.