Plz tel me how to retrieve some specific set of lines from a file and store it in a char buffer.I am seperating each record by ":"

22:abc:4
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:mouse:xyz:3
hardware:ram:xyz:1

23:cde:3
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:ram:xyz:1

25:efg:2
hardware:cd:xyz:2
hardware:eth:abc:6

plz tel me how to retrieve

23:cde:3
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:ram:xyz:1

from the file and store it in a buffer using C.Kindly help me in this

Plz tel me how to retrieve some specific set of lines from a file and store it in a char buffer.I am seperating each record by ":"

22:abc:4
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:mouse:xyz:3
hardware:ram:xyz:1

23:cde:3
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:ram:xyz:1

25:efg:2
hardware:cd:xyz:2
hardware:eth:abc:6

plz tel me how to retrieve

23:cde:3
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:ram:xyz:1

from the file and store it in a buffer using C.Kindly help me in this

to retrieve some specific set of lines from a file:

public boolean retrieve(String eh) {
if (isFound(saidLines())
return true;
}

to retrieve some specific set of lines from a file:

public boolean retrieve(String eh) {
if (isFound(saidLines())
return true;
}

hey dude i want the solution in C.

hey dude,

i want you to quit posting the same question in repeated threads. what is this, the third one now?

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.