954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Read text file through console application

I have written a console application in VB.NET2005 which will read a text file and its contents.

But now I want to sort its data on the basis of its contents i.e the text file has following contents:::

CMGL: 1,"REC READ","7=4;;1413818891>53:1",,"07/12/30,12:18:43+22"
0B05040B840B840003CB0201570601AE02056A0045C60C033230322E3133382E3130302E36302F73
6875726C3F643D3536000AC3072007122913381010C3072008010813381001033130206C616B6820
434153482C203435204E6F6B696120363330302070686F6E65732026206C6F616473206F66207461
6C6B74696D652120546F2077696E2C20616E7377

Here I want to sort it by CMGL:1 which is the serial no. of data and so on such as CMGL:2.. etc
I also want to show th data in each " "(inverted commas) seperately whenever it gets CMGL: and the data below it seperately
Please Help soon
:icon_cry:

bcm
Junior Poster in Training
64 posts since Aug 2007
Reputation Points: 18
Solved Threads: 0
 

Basic string parsing and sorting, any particular problem you were having.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

its sorting problem

bcm
Junior Poster in Training
64 posts since Aug 2007
Reputation Points: 18
Solved Threads: 0
 

I'm not quite sure what you mean by sorting you'll have to elaborate.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You