文件操作
来源:互联网 发布:看外汇行情的软件 编辑:程序博客网 时间:2024/06/07 02:35
PHP
$myfile = 'wtndata/statistic.txt';$file_pointer = fopen($myfile,"a");fwrite($file_pointer,$str);fclose($file_pointer);读取行:
string fgets ( int handle [, int length] )从 handle 指向的文件中读取一行并返回长度最多为 length - 1 字节的字符串。碰到换行符(包括在返回值中)、EOF 或者已经读取了 length - 1 字节后停止(看先碰到那一种情况)。如果没有指定 length,则默认为 1K,或者说 1024 字节。
0 0
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- 文件操作
- POJ 1703 Find them, Catch them(种类并查集)
- 黑马程序员_JAVA其他常用对象
- vmware workstation 10 installation on centos 7 (kernel 3.10, 3.13, etc)
- HDU 3622 2-sat模板
- C++有哪几种情况只能用初始化列表,而不能用赋值?
- 文件操作
- 做游戏?
- 让APP快速适配iPhone6及Plus的诀窍
- CF 21C Stripe 2
- Ios UI简单的相册
- 利用cocos2dx 3.2开发消灭星星(九)为游戏添加一些特效
- OJ2007题、2008题、2009题、2010题、2011题
- (Dis-ordered) Genome-scale prediction of proteins with long intrinsically disordered regions
- 各种语言基本语法