Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Package Installation Failure Pin
NalaBI30-Jan-19 2:38
NalaBI30-Jan-19 2:38 
GeneralRe: Package Installation Failure Pin
OriginalGriff30-Jan-19 3:01
mveOriginalGriff30-Jan-19 3:01 
AnswerRe: Package Installation Failure Pin
Richard MacCutchan29-Jan-19 23:50
mveRichard MacCutchan29-Jan-19 23:50 
GeneralRe: Package Installation Failure Pin
Richard Deeming30-Jan-19 2:18
mveRichard Deeming30-Jan-19 2:18 
GeneralRe: Package Installation Failure Pin
Richard MacCutchan30-Jan-19 3:26
mveRichard MacCutchan30-Jan-19 3:26 
AnswerRe: Package Installation Failure Pin
Richard Deeming30-Jan-19 2:25
mveRichard Deeming30-Jan-19 2:25 
GeneralRe: Package Installation Failure Pin
NalaBI30-Jan-19 2:33
NalaBI30-Jan-19 2:33 
QuestionRead n lines from file Pin
pkfox28-Jan-19 3:20
professionalpkfox28-Jan-19 3:20 
Hi All, I need to parse n lines ( as a block ) from a text file where the start and end blocks are delimited by a marker such as ACC_ID:
C#
// Sample input

ACC_ID:
xxx
...
...
could by dozens of lines
ACC_ID:
xxx
...
etc...

I'm thinking of reading them into a collection of a simple class such as
C#
public class AccountData
{
    string Acc_ID {get;set;}
    List<string> Data {get;set;}
}

where ACC_ID would contain the start block and the Data would contain all other lines between the start and end block, anyone know of a Linq way of doing this >? I currently do it in a loop reading the file line by line which is fine but I'd like to Linquify it if possible, any ideas ?
We can’t stop here, this is bat country - Hunter S Thompson RIP

AnswerRe: Read n lines from file Pin
Dave Kreskowiak28-Jan-19 3:42
mveDave Kreskowiak28-Jan-19 3:42 
GeneralRe: Read n lines from file Pin
pkfox28-Jan-19 21:14
professionalpkfox28-Jan-19 21:14 
GeneralRe: Read n lines from file Pin
Dave Kreskowiak29-Jan-19 2:49
mveDave Kreskowiak29-Jan-19 2:49 
GeneralRe: Read n lines from file Pin
pkfox30-Jan-19 7:48
professionalpkfox30-Jan-19 7:48 
GeneralRe: Read n lines from file Pin
pkfox30-Jan-19 7:48
professionalpkfox30-Jan-19 7:48 
GeneralRe: Read n lines from file Pin
pkfox30-Jan-19 7:48
professionalpkfox30-Jan-19 7:48 
GeneralRe: Read n lines from file Pin
Dave Kreskowiak30-Jan-19 7:53
mveDave Kreskowiak30-Jan-19 7:53 
GeneralRe: Read n lines from file Pin
pkfox30-Jan-19 8:06
professionalpkfox30-Jan-19 8:06 
AnswerRe: Read n lines from file Pin
OriginalGriff28-Jan-19 4:39
mveOriginalGriff28-Jan-19 4:39 
GeneralRe: Read n lines from file Pin
pkfox28-Jan-19 21:16
professionalpkfox28-Jan-19 21:16 
AnswerRe: Read n lines from file Pin
Gerry Schmitz28-Jan-19 8:13
mveGerry Schmitz28-Jan-19 8:13 
GeneralRe: Read n lines from file Pin
pkfox28-Jan-19 21:17
professionalpkfox28-Jan-19 21:17 
AnswerRe: Read n lines from file Pin
BillWoodruff28-Jan-19 23:43
professionalBillWoodruff28-Jan-19 23:43 
GeneralRe: Read n lines from file Pin
pkfox30-Jan-19 7:50
professionalpkfox30-Jan-19 7:50 
AnswerRe: Read n lines from file Pin
AFell231-Jan-19 6:24
AFell231-Jan-19 6:24 
QuestionTimer is get slowed after some time Pin
Mohamed Fahad26-Jan-19 1:01
Mohamed Fahad26-Jan-19 1:01 
AnswerRe: Timer is get slowed after some time Pin
OriginalGriff26-Jan-19 4:11
mveOriginalGriff26-Jan-19 4: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.