private void readFileContent()
{
string path = @"C:\Users\Lee\Desktop\TI杯设计文档\点滴系统\计划进度.docx";
object file = path;
object nullobj = System.Reflection.Missi...
Nginx连接php安装php的依赖包yuminstallgccmakegd-devellibjpeg-devellibpng-devellibxml2-develbzip2-devellibcurl-
devel-y编译安装php./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-
bz2--with-curl--enable-ftp--enable-sockets--d..
分类:
其他好文 时间:
2015-08-08 06:50:04
阅读次数:
130
G++ 1 { 2 "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], 3 "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", 4 "...
分类:
其他好文 时间:
2015-08-06 22:04:23
阅读次数:
169
function edit_xml_file($xml_file_path,$datas,$is_index = false,$is_compress = true){
$doc = new DomDocument('1.0', 'utf-8');
$doc->formatOutput = true;
$flag = false;
if( !@file_exi...
分类:
Web程序 时间:
2015-08-04 23:08:13
阅读次数:
192
package coin;import java.io.IOException;import java.nio.file.FileSystems;import java.nio.file.Path;import java.nio.file.StandardWatchEventKinds;import...
分类:
其他好文 时间:
2015-08-02 00:52:30
阅读次数:
129
package wellGrounded;import java.io.IOException;import java.nio.file.FileVisitResult;import java.nio.file.Files;import java.nio.file.Path;import java....
分类:
编程语言 时间:
2015-07-31 12:10:31
阅读次数:
181
Python一次性读取文件的所有内容在《【Python】文件读写操作》(点击打开链接)中已经说明过的,但有些时候,需要对文件中的每一行进行处理。
比如有一个f:\1.txt如下:
此时,如果要按行读取这个文件,可以直接利用Pyhon的for循环来读取,其中for的对象是这个文件指针,代码如下:
file_path="f:\\a.txt"
fp=open(file_path,"a+")...
分类:
编程语言 时间:
2015-07-30 13:40:51
阅读次数:
482
1.由于最近用到mongodb但查询时前十分左右,用压力测试不太稳定,所以换成第三方引擎试试,但效果还是一样。具说第三方引擎比较给力,但在使用没有发现。现将mongodb切换wiredtiger引擎的配置如下; destination: file path: /soft/mongodb/log/lo...
分类:
数据库 时间:
2015-07-29 12:08:09
阅读次数:
690
原文出处提供两种实现方法,但是第一种效率最好第一种: "; //此处设一个计时器 开始时间$fp = fopen($file_path , 'r') or die("open file failure!");if($fp){//获取文件的一行内容,注意:需要php5才支持该函数;while(str....
分类:
Web程序 时间:
2015-07-29 09:02:07
阅读次数:
116
#include
#include
#include
#include "XZip.h"
//复制文件夹实现
void copy_all_file(LPCSTR file_path, std_string &backup_path) //第一个参数为被复制文件,第二个是复制到的地址
{
if(!(boost::filesystem::exists(backup_path.c_str())...
分类:
其他好文 时间:
2015-07-21 10:38:52
阅读次数:
161