我只用过 r,r+,w,w+,a,a+,b
 我想 rw 应该和 r+,w+,a+ 中的一个功能一样吧.

解决方案 »

  1.   

    你们没有见过啊?我看的是清华出版社出版的《php和mysql实战...》
      

  2.   

    我也没有见过这种写法。我在c++和c里面用到过。但是php没有
      

  3.   

    也许是书中的错了!去找本PHP手册看看。
      

  4.   

    mode specifies the type of access you require to the stream. It may be any of the following:    *      'r' - Open for reading only; place the file pointer at the beginning of the file.
        *      'r+' - Open for reading and writing; place the file pointer at the beginning of the file.
        *      'w' - Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
        *      'w+' - Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
        *      'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
        *      'a+' - Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.