Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (point == true)
- {
- file.open(OUTPUT, ios_base::out | ios_base::trunc);
- if (file.is_open())
- {
- if (lineFirst.word->next != NULL)
- {
- lineNow = &lineFirst;
- while (lineNow->next != NULL)
- {
- search(lineNow, find);
- file << lineNow->count << " ";
- lineNow = lineNow->next;
- }
- }
- else
- {
- printf ("File is empty!\n");
- }
- file.close();
- }
- else
- {
- printf ("Output file not found!\n");
- }
- }
- else
- {
- printf ("Point not found!\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement