- 7
- 0
- 约 18页
- 2016-05-30 发布于天津
- 举报
filepointer.ppt
Input/Ouput Chap 22 22.1 Streams Stream means any source of input or any destination for output. A file pointer is used to access a stream. FILE *fp1, *fp2; Standard streams Opening a File (22.2) Syntax: FILE *filePtr = fopen(fileName, mode); filePtr is a variable of a file pointer, a pointer to a FILE-structure object. mode: read (讀檔), write (寫檔), append (追加);text (文字檔), binary 檔. (See next page) Ex: FILE *fptr = fopen(mydata.txt, r); Opening a File Table of file open modes (開啟模式): Opening a File ASCII mode (純文字模式): fopen()預設是 ASCII 模式 讀入 DOS 換行符號 \r\n (\x0d0a) 時,會自動改成 \n 寫出 \n時也會改為 \r\n \0
您可能关注的文档
最近下载
- 海上深水港口码头工程施工组织设计.docx VIP
- 2026年入团积极分子培训结业考试题库及答案(共100题).docx VIP
- 2025届福建省厦门市思明区小学二年级上学期期中语文试题.docx
- 国家奖励办登记备案地社会力量设立科学技术奖项清单.doc VIP
- 北京理工大学超星尔雅学习通“会计学”《会计信息系统》网课试题附带答案.docx VIP
- 2023中国铁建股份有限公司所属单位笔试备考题库及答案解析.docx VIP
- 2026 年广西普通高等教育专升本考试(含高职升本)新大纲 医药卫生大类 专业基础综合课合卷 第 8 套模拟考试试卷(含答案解析).pdf VIP
- 第七章建设工程监理质量控制.pptx VIP
- 人教版数学五年级下册全册课件(2025年4月修订).ppt
- 道路改造工程施工方案.().doc VIP
原创力文档

文档评论(0)