I'm trying to make a simple program which searches for a certain record in file but some why it the search member function doesn't produce any output can any body help??????????
the search member function doesn't produce any output
It does. You can't see it because the console (in your debug environment) closes to quickly. Call your programm from the console directly or use a better IDE like Code::Blocks
I tried to run it from the console but the same problem appeared
it found the record only if it was the 1st record other wise it returns record not found :(
Yes I see. The problem is on line 33. There you add '\n'. But when reading you're just looking for '|' (and not '\n') hence it never reaches the end of file and you have an endless loop.