file.Write(&参数一,参数二)有谁能解释这两参数的意义
不知道这两个参数的含义!

解决方案 »

  1.   

    CFile::Write 
    virtual void Write( const void* lpBuf, UINT nCount );
    throw( CFileException );ParameterslpBuf  //待写入的内容(void*型)A pointer to the user-supplied buffer that contains the data to be written to the file.nCount //待写入多少字节The number of bytes to be transferred from the buffer. For text-mode files, carriage return–linefeed pairs are counted as single characters.ResWrites data from a buffer to the file associated with the CFile object. Write throws an exception in response to several conditions, including the disk-full condition.Example//example for CFile::Write
    extern CFile cfile;
    char pbuf[100];
    cfile.Write( pbuf, 100 );