码迷,mamicode.com
首页 >  
搜索关键字:read    ( 19693个结果
FACL的使用
ACL的使用 ACL即Access Control List 主要的目的是提供传统的owner,group,others的read,write,execute权限之外的具体权限设置,ACL可以针对单一用户、单一文件或目录来进行r,w,x的权限控制,对于需要特殊权限的使用状况有一定帮助。如,某一个文....
分类:其他好文   时间:2014-11-17 17:09:36    阅读次数:326
Win 32平台SDK中的文件操作
读取文件: HANDLE hFile ; // 声明文件操作内核对象句柄 hFile = CreateFile("1.txt", GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRI...
分类:Windows程序   时间:2014-11-17 13:44:35    阅读次数:268
node.js基础语法
nodejs基础语法 Node.js的数据类型 Node.js的逻辑判断 Node.js的各种循环 Node.js中使用函数 看看和js有没有什么区别 使用 node 的 REPL 模式 REPL (Read-eval-print loop),即输入—求值—输出循环。 Number (数字) Boo...
分类:Web程序   时间:2014-11-17 00:28:54    阅读次数:295
CODEVS 3269 混合背包
一道裸的混合背包题目,但是忘记了去重一直TLE,就是如果体积 题目连接:http://codevs.cn/problem/3269/ #include #include #include #include using namespace std; const int maxn = 210; const int maxc = 200010; inline int read() { ...
分类:其他好文   时间:2014-11-16 21:41:20    阅读次数:373
POJ 1159-Palindrome(DP/LCS变形)
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 53770   Accepted: 18570 Description A palindrome is a symmetrical string, that is, a string read i...
分类:其他好文   时间:2014-11-16 20:11:38    阅读次数:256
Android项目路径改变后,libs文件夹内的包miss的解决办法
今天用因为用git,所以把项目移出了workspace(git不推荐将repository放到workspace里面),然后就报错: Archive for required library XXX in project cannot be read or is not a valid ZIP file 发现项目下的...
分类:移动开发   时间:2014-11-16 18:57:45    阅读次数:185
OSX Finder显示隐藏文件
Automator -> [服务] -> 搜索栏中找到"Run Shell Script"拖到右边的工作区 -> 复制以下脚本文本框中:STATUS=`defaults read com.apple.finder AppleShowAllFiles` if [ $STATUS == YES ]; t...
分类:其他好文   时间:2014-11-16 18:31:22    阅读次数:145
C语言从文件读数据
//从文件中读出数据void ReadFromFile(int a[]){ int i=0; FILE *fp; if((fp=fopen("data.txt","r"))==NULL) { printf("file read error!"); exit(1); } while(!feof(f.....
分类:编程语言   时间:2014-11-15 21:34:56    阅读次数:174
用Python抓网页的注意事项
用Python编一个抓网页的程序是非常快的,下面就是一个例子:import urllib2 html = urllib2.urlopen('http://blog.raphaelzhang.com').read()但是在实际工作中,这种写法是远远不够的,至少会遇到下面几个问题:网络会出错,任何错误都...
分类:编程语言   时间:2014-11-15 16:44:29    阅读次数:535
Beginning Python From Novice to Professional (8) - 文件方法
文件方法 读写: #!/usr/bin/env python f = open('somefile.txt','w') f.write('Hello,') f.write('World!') f.close() f = open('somefile.txt','r') print f.read(5)Hello使用基本文件方法: #!/usr/bin/env python f = open(r...
分类:编程语言   时间:2014-11-15 15:32:37    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!