码迷,mamicode.com
首页 >  
搜索关键字:read    ( 19693个结果
write() ,read();
int main1(int argc ,char *argv[]){ if(argc 0)//文件大的时候由于buf太小每次只读buf大小 { printf("%s\n" , buf); memset(buf , 0, 100);//读完以后清空buf ...
分类:其他好文   时间:2015-03-10 19:11:28    阅读次数:146
Java 输入/输出(I/O)学习笔记 -- 流
在 Java API 中,可以从其中读入一个字节序列的对象称做输入流,而可以向其中写入一个字节序列的对象称做输出流。这些字节序列的来源地和目的地可以是文件,而且通常都是文件,但是也可以是网络连接,甚至是内存块。抽象类 InputStream 和 OutputStream 构成了输入 / 输出(I/O)类层次结构的基础。 InputStream 类有一个抽象方法:abstract int read(...
分类:编程语言   时间:2015-03-10 17:26:40    阅读次数:203
Linux 的权限控制
1.Linux文件可存取身份分为:owner/group/others权限分为:read/write/execute2. 一个账号可以属于多个群组
分类:系统相关   时间:2015-03-10 00:10:28    阅读次数:259
hadoop学习笔记--hadoop读写文件过程
读取文件:   下图是HDFS读取文件的流程:   这里是详细解释:       1.当客户端开始读取一个文件时,首先客户端从NameNode取得这个文件的前几个block的DataNode信息。(步骤1,2)   2.开始调用read(),read()方法里,首先去读取第一次从NameNode取得的几个Block,当读取完成后,再去NameNode拿下一批Block的...
分类:其他好文   时间:2015-03-09 22:35:35    阅读次数:209
MITx 6.00 Problem Set 3 hangman游戏
全部代码参见Github:https://github.com/pxjw/MITx-6.00.1-2-Problem-Set/tree/master/6.00.1x/proSet3HANGMAN PART 1: IS THE WORD GUESSED?Please read the Hangman ...
分类:其他好文   时间:2015-03-09 20:39:11    阅读次数:368
my.cnf
#MySQL5.5.8 [client] port=3306 socket=/opt/mysql/mysql.sock [mysqld] port=3306 socket=/opt/mysql/mysql.sock user=mysql skip-slave-start skip-name-resolve key_buffer_size=2M read_buffer_size=2M sort_buffer_size=2M #5.1.3table_cachedeprecated table_open_..
分类:其他好文   时间:2015-03-09 19:20:00    阅读次数:177
Count and Say
The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as "one 2...
分类:其他好文   时间:2015-03-09 16:19:53    阅读次数:133
The file “Info.plist” couldn’t be opened because there is no such file
删除Xcode创建的默认单元测试,报错 (null): could not read data from '/Users/xxxxx/Desktop/gsk/zhsy/zhsy/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file. 解决办法 删的不够彻底,把单元测试的tar...
分类:其他好文   时间:2015-03-09 16:19:49    阅读次数:168
linux 下串口编程VTIME和VMIN的设置
VTIME定义要求等待的时间量(取值不能大于cc_t)。VMIN定义了要求等待的最小字节数。options.c_cc[VTIME] = X; //设置从获取到1个字节后开始计时的超时时间options.c_cc[VMIN] = Y; //设置要求等待的最小字节数在原始模式下对read()函...
分类:系统相关   时间:2015-03-09 16:09:36    阅读次数:138
use of undeclared identifier *** , did you mean ***. in xcode
A property is not the same thing os a instance variable, you should read a little bit of them, there's plenty of sources in the internet.Summarizing, ...
分类:其他好文   时间:2015-03-09 10:48:57    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!