1、文件的操作,读写文件,解决乱码问题读文件InputStreamReader isr = new InputStreamReader(new FileInputStream(new File(path)), "UTF-8");BufferedReader reader = new Buffered...
分类:
其他好文 时间:
2014-08-24 23:28:33
阅读次数:
304
1.如果这个库文件已经存在使用rpm命令:# rpm -qf/file/path (绝对路径)例如:# rpm -qf /lib/libm.so.6glibc-2.12-1.47.el6.i686当然,这适用于rpm包已经安装了的情况。如果,没有安装呢?比如系统提示缺少某个库?2.如果这个库文件不存...
分类:
其他好文 时间:
2014-08-24 23:27:43
阅读次数:
413
思路 先将字符串中的单词分割保存至二维数组中,再经排序后输出。水题,直接上代码了。 代码 /************************************************************************* > File Name: words_sort.c > Au...
分类:
其他好文 时间:
2014-08-24 22:12:53
阅读次数:
184
本文主要简单介绍了利用poi包,读取world文件内容。 这个依然存在版本的问题,只能读取doc结尾的老版本文件。 话不多说,上代码: 1 import java.io.File; 2 import java.io.FileInputStream; 3 4 import org.apach...
分类:
编程语言 时间:
2014-08-24 22:11:13
阅读次数:
284
JAVA可以利用jxl简单快速的读取文件的内容,但是由于版本限制,只能读取97-03 xls格式的Excel。 1 import java.io.File; 2 import java.io.FileInputStream; 3 4 import jxl.Cell; 5 import jx...
分类:
编程语言 时间:
2014-08-24 22:06:13
阅读次数:
195
JAVA 读取txt文件内容 通常,我们可以直接通过文件流来读取txt文件的内容,但有时可能会出现乱码!此时只要设置一下文件字符编码即可。 1 import java.io.BufferedReader; 2 import java.io.File; 3 import java.io.Fi...
分类:
编程语言 时间:
2014-08-24 22:01:03
阅读次数:
253
Given an absolute path for a file (Unix-style), simplify it.For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"思路:本题使用栈来处理即可。此处我们...
分类:
其他好文 时间:
2014-08-24 20:50:23
阅读次数:
155
The steps:First you need to edit the file in:/etc/hostconfigand remove the lineSince this is a system file I advise you to open it with nano in termin...
分类:
数据库 时间:
2014-08-24 20:45:02
阅读次数:
183
Rsync一、基础知识1、rsync:是传输输工具,类似于scpScp的用法要知道远程主机的密码和账号文件在本地上传到远程Scp[option]sourcefile[[user@]host1:]destions/file文件在远程下载到本地Scp[option][[user@]host1:]destions/filesource/filersync?.afast,versatile,remote(and..
分类:
其他好文 时间:
2014-08-24 19:29:03
阅读次数:
320
HE
/WEB-INF/u_member/Login.jsp
HE
/Login.jsp
配置之后就可以通过Login.jsp直接访问了...
分类:
Web程序 时间:
2014-08-24 16:43:42
阅读次数:
176