摘要
在C语言中,文件可以通过两种方式进行读写,即按文本方式和按二进制方式,而后者在读写效率及空间效率上往往要优于前者。本文阐述了以二进制方式读写c文件的原理及特点,并利用c语言的指针技术实现了这种格式的数据读写,开发了几组用二进制方式读写文件的c语言函数。
In C language, the document can be read and written in both text format and in binary format, the latter is usually better in read-and-write efficiency and space efficiency. In order to read and write the document of C in binary format, this paper develops several read-and-write functions using the technique of pointer in language C, and introduces its principle and characteristics as well.
出处
《培训与研究(湖北教育学院学报)》
2002年第5期21-23,共3页
Training and Research-Journal of Hubei College of Education