0

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

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by jephthah
0

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;
}

0

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.

0

hey dude,

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.