需要关于低级文件i / p o / p的教程 [英] need tutorial on low level file i/p o/p

查看:106
本文介绍了需要关于低级文件i / p o / p的教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上查了一些,但似乎有太多的方法

矛盾。它看起来不像K& R 2也涵盖了它。

解决方案

broli写道:


i查了几个在互联网上,似乎有太多的方式

矛盾。它看起来不像K& R 2也涵盖了它。



涵盖什么?啊,文件IO。请把你的问题放在你的

帖子的正文中。


你不明白什么? fread和fwrite非常简单

函数。


-

Ian Collins。


3月13日下午2:16,Ian Collins< ian-n ... @ hotmail.comwrote:


broli写道:


i在互联网上查了一些,但似乎有太多的话b / b
矛盾。它看起来不像K& R 2也涵盖了它。



涵盖什么?啊,文件IO。请把你的问题放在你的

帖子的正文中。


你不明白什么? fread和fwrite相当简单

函数。


-

Ian Collins。



我认为开放和读取是用于低级文件的命令

操作。

broli写道:


3月13日下午2:16,Ian Collins< ian-n ... @ hotmail.comwrote:


> broli写道:


>>我在互联网上查了几个但是它似乎在那里是太多的矛盾了。它看起来不像K& R 2也涵盖了它。


涵盖什么?啊,文件IO。请把你的问题放在
帖子的正文中。

你不明白什么? fread和fwrite非常简单
函数。



请不要引用签名。


>

我认为open和read是用于低级文件

操作的命令。



您将POSIX I / O功能与来自标准C的功能混淆.C

提供''f''系列功能在FILE *流上运行。

POSIX函数使用文件描述符。


有关这些的详细信息,请参阅手册页然后询问

comp.unix.programmer。


-

Ian Collins。


i looked up a few on the internet but it seems there is way too much
contradictions. It doesn''t seem like K & R 2 covers it either.

解决方案

broli wrote:

i looked up a few on the internet but it seems there is way too much
contradictions. It doesn''t seem like K & R 2 covers it either.

Covers what? Ah, file IO. Please put your question in the body of your
post.

What don''t you understand? fread and fwrite are pretty straightforward
functions.

--
Ian Collins.


On Mar 13, 2:16 pm, Ian Collins <ian-n...@hotmail.comwrote:

broli wrote:

i looked up a few on the internet but it seems there is way too much
contradictions. It doesn''t seem like K & R 2 covers it either.


Covers what? Ah, file IO. Please put your question in the body of your
post.

What don''t you understand? fread and fwrite are pretty straightforward
functions.

--
Ian Collins.


I think open and read are the commands used for low level file
operations.


broli wrote:

On Mar 13, 2:16 pm, Ian Collins <ian-n...@hotmail.comwrote:

>broli wrote:

>>i looked up a few on the internet but it seems there is way too much
contradictions. It doesn''t seem like K & R 2 covers it either.

Covers what? Ah, file IO. Please put your question in the body of your
post.

What don''t you understand? fread and fwrite are pretty straightforward
functions.

Please don''t quote signatures.

>
I think open and read are the commands used for low level file
operations.

You are confusing POSIX I/O functions with those from standard C. C
offers the ''f'' family of functions which operate on FILE* streams.
POSIX functions use file descriptors.

For more information on those, consult you man pages then ask on
comp.unix.programmer.

--
Ian Collins.


这篇关于需要关于低级文件i / p o / p的教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆