Search:

Type: Posts; User: Salem

Search: Search took 1.29 seconds.

  1. Replies
    3
    Views
    1,194

    > May I know the why I cannot read immediately...

    > May I know the why I cannot read immediately after writing?
    Because that's what it says in the standard and the manual pages.
  2. Replies
    3
    Views
    1,194

    Between writing and reading, you need to use ...

    Between writing and reading, you need to use
    fflush(fr);

    > printf("\nThe text now is %s", s);
    What do you expect to see?
    If the original file was "Hello", then you could be looking at...
Results 1 to 2 of 2