954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to retrieve some specific set of lines from a file and store it in a char buffer.

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

metal_butterfly
Newbie Poster
23 posts since Mar 2009
Reputation Points: 10
Solved Threads: 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;
}

deathwishgenius
Newbie Poster
8 posts since Jan 2009
Reputation Points: 10
Solved Threads: 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.

metal_butterfly
Newbie Poster
23 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

hey dude,

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

jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You