Click here to Skip to main content
       

C#

 
GeneralRe: [Help] C# .txt Pinmembermumbot18-Nov-12 19:43 
GeneralRe: [Help] C# .txt PinmemberV.19-Nov-12 0:37 
GeneralRe: [Help] C# .txt PinmemberPIEBALDconsult23-Nov-12 9:46 
AnswerRe: [Help] C# .txt Pinmemberomisheikh18-Nov-12 21:04 
GeneralRe: [Help] C# .txt Pinmembermumbot18-Nov-12 21:13 
GeneralRe: [Help] C# .txt Pinmemberomisheikh18-Nov-12 21:19 
GeneralRe: [Help] C# .txt Pinmembermumbot18-Nov-12 21:31 
GeneralRe: [Help] C# .txt Pinmemberomisheikh18-Nov-12 21:40 
TextReader tr = new StreamReader(C\\test.txt);
 
//How many lines should be loaded?
int NumberOfLines = 15;
 
//Make our array for each line
string[] ListLines = new string[NumberOfLines];
 
//Read the number of lines and put them in the array
for (int i = 1; i < NumberOfLines; i++)
{
ListLines[i] = tr.ReadLine();
}
if the title is in number 5 line
this.text = ListLines[5];
one all the lines are added in the array then you can pick your desired one.
hope this will help you..
GeneralRe: [Help] C# .txt Pinmembermumbot18-Nov-12 22:15 
GeneralRe: [Help] C# .txt PinmemberZac Greve18-Nov-12 22:32 
GeneralRe: [Help] C# .txt Pinmemberomisheikh18-Nov-12 22:34 
GeneralRe: [Help] C# .txt Pinmembermumbot19-Nov-12 0:02 
AnswerRe: [Help] C# .txt PinmemberMathlab19-Nov-12 7:54 
QuestionAnother conversion problem (Prism) PinmemberAndy_L_J18-Nov-12 11:07 
AnswerRe: Another conversion problem (Prism) PinprotectorPete O'Hanlon18-Nov-12 11:39 
GeneralRe: Another conversion problem (Prism) PinmemberAndy_L_J18-Nov-12 11:47 
QuestionSending bytes via internet? (info) Pinmemberclonze18-Nov-12 1:22 
AnswerRe: Sending bytes via internet? (info) PinmemberEddy Vluggen18-Nov-12 1:50 
GeneralRe: Sending bytes via internet? (info) Pinmemberclonze18-Nov-12 3:54 
GeneralRe: Sending bytes via internet? (info) PinmemberEddy Vluggen18-Nov-12 4:42 
QuestionConverting from VB.NET [modified] PinmemberAndy_L_J17-Nov-12 21:39 
AnswerRe: Converting from VB.NET [modified] PinmentorDaveyM6917-Nov-12 22:23 
GeneralRe: Converting from VB.NET PinmemberAndy_L_J17-Nov-12 22:54 
GeneralRe: Converting from VB.NET PinmentorDaveyM6918-Nov-12 7:10 
GeneralRe: Converting from VB.NET PinmemberAndy_L_J18-Nov-12 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 29 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid