Computer Science, asked by pushpendra0302, 1 year ago

write down a program to search an element in a file std.txt?

Answers

Answered by Rossily
1
While loop is used for reading one word at a time from the file till the end of file, strcmp will return 0, if word read by fscanf matches with word you want to search for. I haven’t tested it, but I think it should work.

pushpendra0302: plz pic of program argent need
Answered by nisha618
1
This is the c++ program to find the element
Attachments:

pushpendra0302: i am asking from data handling concept
pushpendra0302: not asking
pushpendra0302: i want to know we can do it from fstream something like that
lpskshatri: tanq for following me nisha
pushpendra0302: what
nisha618: He it's k
pushpendra0302: ok
pushpendra0302: by the way where are you from
pushpendra0302: nisha
Similar questions