Search:

Type: Posts; User: anooj123

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    27,678

    thanks guys for ure help i figured out what...

    thanks guys for ure help

    i figured out what the problem was
    i was using
    fin>>ch;
    but that is error prone and was screwing up in this case
    aaaahhhh i know

    so i used fin.get(ch)
    worked fine
  2. Replies
    6
    Views
    27,678

    how to check for end of line in a text file

    i needed to write a prog to display which line a character is found in, in a text file

    so basically my problem is checking for the new line or end of line

    i mean
    if(ch=='\n')
    line++;
    ...
Results 1 to 2 of 2