Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
GeneralMobile to PC connection via Bluetooth Pin
SWG23-Mar-08 13:28
SWG23-Mar-08 13:28 
QuestionHow to add Textbox invisible mode Pin
Exelioindia23-Mar-08 13:05
Exelioindia23-Mar-08 13:05 
AnswerRe: How to add Textbox invisible mode Pin
Christian Graus23-Mar-08 13:12
protectorChristian Graus23-Mar-08 13:12 
AnswerRe: How to add Textbox invisible mode Pin
Vimal Raj23-Mar-08 23:35
Vimal Raj23-Mar-08 23:35 
GeneralProblems with a panel component after importing some classes Pin
rctriplane23-Mar-08 13:01
rctriplane23-Mar-08 13:01 
GeneralRe: Problems with a panel component after importing some classes Pin
Christian Graus23-Mar-08 13:15
protectorChristian Graus23-Mar-08 13:15 
GeneralWriting an html file from a form application Pin
johnny__XP23-Mar-08 10:40
johnny__XP23-Mar-08 10:40 
GeneralRe: Writing an html file from a form application Pin
Christian Graus23-Mar-08 11:22
protectorChristian Graus23-Mar-08 11:22 
GeneralRe: Writing an html file from a form application Pin
sarvesh.upadhyay24-Mar-08 1:16
professionalsarvesh.upadhyay24-Mar-08 1:16 
QuestionDetect mime-type without download Pin
SilverV23-Mar-08 7:29
SilverV23-Mar-08 7:29 
GeneralRe: Detect mime-type without download Pin
Giorgi Dalakishvili23-Mar-08 8:04
mentorGiorgi Dalakishvili23-Mar-08 8:04 
GeneralRe: Detect mime-type without download Pin
SilverV23-Mar-08 8:28
SilverV23-Mar-08 8:28 
GeneralRe: Detect mime-type without download Pin
Luc Pattyn23-Mar-08 9:09
sitebuilderLuc Pattyn23-Mar-08 9:09 
GeneralRegular expression content matching between opening and closing tags Pin
N a v a n e e t h23-Mar-08 6:43
N a v a n e e t h23-Mar-08 6:43 
GeneralRe: Regular expression content matching between opening and closing tags Pin
PIEBALDconsult23-Mar-08 7:19
mvePIEBALDconsult23-Mar-08 7:19 
GeneralRe: Regular expression content matching between opening and closing tags Pin
N a v a n e e t h23-Mar-08 7:43
N a v a n e e t h23-Mar-08 7:43 
QuestionReading a specific line from txt file Pin
Casper Hansen23-Mar-08 5:55
Casper Hansen23-Mar-08 5:55 
Hello.

I have a text file that looks like this:
0	1	"Bull Fighter"		6	100	0	16	20	6	0	28	6	3	0	1	5	400	1600	10	2	130	10	6	0	0	0	0	0<br />
1	1	"Hound"			9	140	0	22	27	9	0	39	9	3	0	1	5	400	1600	10	2	130	10	6	0	0	0	0	0<br />
2	1	"Budge Dragon"		4	60	0	10	13	3	0	18	3	3	0	1	4	400	2000	10	2	120	10	6	0	0	0	0	0


It is called monster.txt

The first value is a id which I also use in my script.

Lets say I have the id 3, this would be "Spider" since the first number of "Spider" is 3

What is the best way to read the monster.txt file for the id and retrive the name? (Name = "Spider", id = 3) (As my example above)
GeneralRe: Reading a specific line from txt file Pin
Xmen Real 23-Mar-08 6:07
professional Xmen Real 23-Mar-08 6:07 
GeneralRe: Reading a specific line from txt file Pin
Casper Hansen23-Mar-08 6:43
Casper Hansen23-Mar-08 6:43 
GeneralRe: Reading a specific line from txt file Pin
Gareth H23-Mar-08 7:02
Gareth H23-Mar-08 7:02 
GeneralRe: Reading a specific line from txt file Pin
PIEBALDconsult23-Mar-08 7:11
mvePIEBALDconsult23-Mar-08 7:11 
GeneralRe: Reading a specific line from txt file Pin
Xmen Real 23-Mar-08 13:47
professional Xmen Real 23-Mar-08 13:47 
GeneralRe: Reading a specific line from txt file Pin
PIEBALDconsult23-Mar-08 7:05
mvePIEBALDconsult23-Mar-08 7:05 
GeneralRe: Reading a specific line from txt file Pin
Dave Sexton23-Mar-08 6:39
Dave Sexton23-Mar-08 6:39 
GeneralRe: Reading a specific line from txt file Pin
Casper Hansen23-Mar-08 8:02
Casper Hansen23-Mar-08 8:02 

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.