设为首页 加入收藏

TOP

※C++随笔※=>☆C++基础☆=>※№ C++文件操作 (fstream)(五)
2015-11-21 01:15:20 来源: 作者: 【 】 浏览:18
Tags:随笔 > 基础 文件 操作 fstream
d 127 characters.?
? ? * @attention?
? ? */ ?
? ? VOID Get(NCHAR* pStr, DWORD dwGetNum, NCHAR chEndChar); ?
??
??
? ? /**?
? ? * Read (Reading and writing binary files)?
? ? *?
? ? * @param ? ? ? ? NCHAR* buf?
? ? * @param ? ? ? ? DWORD dwNum?
? ? * @return BOOL?
? ? * @note ? ? ? ? Prototype: read (unsigned char * buf, int num); read () num characters to read from the file ?
? ? ? ? ? ? ? ? ? ? cache buf points to the end of the file has not been read into the num characters can use member ?
? ? ? ? ? ? ? ? ? ? functionsint gcount (); to get the actual number of characters read?
? ? * @attention?
? ? */ ?
? ? VOID Read(NCHAR* buf, DWORD dwNum); ?
??
? ? /**?
? ? * Write (Reading and writing binary files)?
? ? *?
? ? * @param ? ? ? ? NCHAR* buf?
? ? * @param ? ? ? ? DWORD dwNum?
? ? * @return BOOL?
? ? * @note ? ? ? ? Prototype: write (const unsigned char * buf, int num); write () from buf points to the cache ?
? ? ? ? ? ? ? ? ? ? write num characters to the file, it is noteworthy cache type is unsigned char *, may sometimes?
? ? ? ? ? ? ? ? ? ? be necessary type conversion.?
? ? * @attention?
? ? */ ?
? ? VOID Write(const NCHAR* buf, DWORD dwNum); ?
??
? ? /**?
? ? * Eof End of file is read (Reading and writing binary files)?
? ? *?
? ? * @param VOID?
? ? * @return BOOL?
? ? * @note?
? ? * @attention?
? ? */ ?
? ? BOOL Eof(VOID); ?
??
? ? /**?
? ? * Gcount The actual number of bytes read (Reading and writing binary files)?
? ? *?
? ? * @param VOID?
? ? * @return DWORD?
? ? * @note?
? ? * @attention?
? ? */ ?
? ? DWORD Gcount(VOID); ?
??
??
? ? /**?
? ? * Seekg Absolutely move (Reading and writing binary files)?
? ? *?
? ? * @param ? ? ? ? DWORD dwSeek absolute move position?
? ? * @return VOID?
? ? * @note?
? ? * @attention ? ?Input stream operation?
? ? */ ?
? ? VOID Seekg(DWORD dwSeek); ?
??
? ? /**?
? ? * Seekg Relatively move (Reading and writing binary files)?
? ? *?
? ? * @param ? ? ? ? DWORD dwSeek relatively move position?
? ? * @param ? ? ? ? FILE_REFERENCE_POS eFileRefPos file reference position?
? ? ? ? ? ? ? ? ? ? ? ? FILE_REFERENCE_POS_BEG = std::ios :: beg, ? // 0: relative to the file header?
? ? ? ? ? ? ? ? ? ? ? ? FILE_REFERENCE_POS_CUR = std::ios :: cur, ? // 1: relative to the current position?
? ? ? ? ? ? ? ? ? ? ? ? FILE_REFERENCE_POS_END = std::ios :: end, ? // 2: relative to the end of the file?
? ? * @return VOID?
? ? * @note?
? ? * @attention ? ?Input stream operation?
? ? */ ?
? ? VOID Seekg(DWORD dwSeek, FILE_REFERENCE_POS eFileRefPos); ?
??
? ? /**?
? ? * Tellg Returns the current pointer position (Reading and writing binary files)?
? ? *?
? ? * @param VOID?
? ? * @return VOID?
? ? * @note?
? ? * @attention ? ?Input stream operation?
? ? */ ?
? ? VOID Tellg(VOID); ?
??
? ? /**?
? ? * Seekp Absolutely move (Reading and writing binary files)?
? ? *?
? ? * @param ? ? ? ? DWORD dwSeek absolute move position?
? ? * @return VOID?
? ? * @note?
? ? * @attention ? ?Output stream operation?
? ? */ ?
? ? VOID Seekp(DWORD dwSeek); ?
??
? ? /**?
? ? * Seekp Relatively move (Reading and writing binary files)?
? ? *?
? ? * @param ? ? ? ? DWORD dwSeek relatively move position?
? ? * @param ? ? ? ? FILE_REFERENCE_POS eFileRefPos file reference position?
? ? ? ? ? ? ? ? ? ? ? ? FILE_REFERENCE_POS_BEG = std::ios :: beg, ? // 0: relative to the file header?
? ? ? ? ? ? ? ? ? ? ? ? FILE_REFERENCE_POS_CUR = std::ios :: cur, ? // 1: relative to the current position?
? ? ? ? ? ? ? ? ? ? ? ? FILE_REFERENCE_POS_END = std::ios ::
首页 上一页 2 3 4 5 6 7 8 下一页 尾页 5/11/11
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇POJ3006:Dirichlet's Theorem.. 下一篇字符串系列――10010 Where's..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: