Difference rb and r??

This is a discussion on Difference rb and r?? within the C Programming forums, part of the General Programming Boards category; In my study book they use fgetc,fgets,fscanf and fread both for rb and r where in my opinion you should ...

  1. #1
    Unregistered
    Guest

    Difference rb and r??

    In my study book they use fgetc,fgets,fscanf and fread both for rb and r where in my opinion you should use fgets,fgetc and fscanf for text files(r) and fread for binary files(rb).Am I right or wrong? Do rb and r have something to do with streams??Do rb and r tell you which stream you want to use???Please help me,I am getting nervous of this problem.

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >Am I right or wrong? Do rb and r tell you which stream you want to use???Do rb and r have something to do with streams??

    Right, yes and yes.

    >I am getting nervous of this problem.

    I'm nervous that you're nervous.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21