Hi i have a problem in programming I need to search a line from a text file by just entering an identifier.

Text File: "my Record.text"
contents:
101,Carl Cool,500.00
102,Kurt Cobain,400.00
103,Kid Marion,300.00


the console should ask the id number..

ex.
ID:101

and give the output:
ID:101
Name:Carl Cool
Rate:500.00

It should be disregard commas and spaces. Which means tokenizing and comparing string arrays..I hope you can help me with this..
thanks..need your reply..[TEX][/TEX]
thanks again..(^_^)

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.