Thread: Difference rb and r??

  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