码迷,mamicode.com
首页 >  
搜索关键字:readfile    ( 317个结果
第二章 数据的存储与检索(2)
重点: 知道何时读完文件:feof() 函数 每次读取一行数据:fgets() 、fgetss() 、fgetcsv() 函数 读取整个文件:readfile() 、fpassthru() 、file() 函数 读取一个字符:fgetc() 函数 读取任意长度:fread() 函数 查看文件是否存在 ...
分类:其他好文   时间:2016-07-20 01:17:18    阅读次数:272
composer安装记录
第一步:http://docs.phpcomposer.com/00-intro.html#Manual-Installation(安装步骤) 第二步:php.ini中打开php_openssl.dll扩展 第三步:重启Apache 第四步:cmd命令行php -r "readfile('https ...
分类:其他好文   时间:2016-07-15 00:44:59    阅读次数:258
C++ txt文档读取
void readfile(string filepath){ ifstream myfile; if (!myfile) { cout << "打开文件出错!"; exit(1); }else{ myfile.open(filepath); string ss; while(getline(myf ...
分类:编程语言   时间:2016-07-14 11:47:59    阅读次数:210
读取文件txt
/// <summary> /// 读取文件 /// </summary> /// <param name="path"></param> /// <returns></returns> public static String ReadFile() { string path = AppDomai ...
分类:其他好文   时间:2016-07-12 23:22:42    阅读次数:142
node 文件操作
1、异步读取 fs.readFile( url , code , callback); 2、同步读取 fs.readFileSync( url , code ); 1 var fs = require('fs'); 2 // 异步读取 3 fs.readFile('input.txt', funct ...
分类:其他好文   时间:2016-07-12 21:00:52    阅读次数:207
利用php的curl扩展进行模拟浏览器访问网页
我们一般要抓取一个网站的静态页面来完成我们的需求,其实在这里面有很多种方式可以完成, php内置函数file_get_contents();file();readfile();都可以进行网页抓取,但是这种方式毕竟是有很大 局限性的,例如我们要访问一个需要登录的网站,需要登录验证信息,这是后php内置 ...
分类:Web程序   时间:2016-07-07 14:23:25    阅读次数:334
MATLAB 读子文件夹下文件
把符合的文件路径保存到fp中,FileType为指定文件的类型,MainPath为文件夹的路径 function Path=ReadFile(fp,MainPath,FileType)%%%%%%%%%%%%%%%MainPath为主路径,FileType为需要读取的文件类型PathFileForm ...
分类:其他好文   时间:2016-06-29 01:08:08    阅读次数:216
Windows平台内核级文件访问
1.背景 在windows平台下,应用程序通常使用API函数来进行文件访问,创建,打开,读写文件。从kernel32的CreateFile/ReadFile/WriteFile函数,到本地系统服务,再到FileSystem及其FilterDriver,经历了很多层次。在每个层次上,都存在着安全防护软 ...
分类:Windows程序   时间:2016-06-28 22:12:26    阅读次数:231
CreateFile,ReadFile等API详解(或者说MSDN的翻译)
一、*****CreateFile***** 这个函数可以创建或打开一个对象的句柄,凭借此句柄就可以控制这些对象:控制台对象、通信资源对象、目录对象(只能打开)、磁盘设备对象、文件对象、邮槽对象、管道对象。 函数原型:HANDLE CreateFile(LPCTSTR lpFileName, // ...
分类:Windows程序   时间:2016-06-19 06:49:28    阅读次数:583
文件的读写操作 代码详解
public class FileOperation { //读文件 public static UserInfo[] readFile(){ //把文件中的数据先读到Properties容器中 Properties props =new Properties(); try { props.load ...
分类:其他好文   时间:2016-06-06 00:34:53    阅读次数:147
317条   上一页 1 ... 17 18 19 20 21 ... 32 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!