
文件
qidizi
文件共享盘:http://cid-0c051e9a0a1fd5a3.office.live.com;
展开
-
android的文件权限检测统一处理方法
/** 检查文件是否有对应权限* @return 如果有权限返回null,否则返回没有权限的字符串说明* chk "/类型[f|d] +权限[r|w|x] -允许属性[h|r]"*/private String checkFile (String absolutePath, String chk) {File f = new File(absolutePath);if (!f.exists())原创 2013-03-28 16:53:00 · 780 阅读 · 0 评论 -
bat特殊字符追写文件行的方法
CALL :write_coded_line "kkkkkk"">|-^~" "q.txt"goto :EOF:write_coded_line:: SUB :write_coded_line:: param 1: data, param 2: fileSET wcl_out=%~2SET P0=%1SET wcl_check=%P0: =%SET P0=%P0:'="%SET P0=%P0:|=原创 2013-03-28 16:54:26 · 963 阅读 · 0 评论 -
bat生成utf8编码的文本文件的方法
:write_mz3 set utf8=65001 set ansi=936 chcp %utf8% call :write_coded_line %1 "%mz3%" chcp %ansi%:eof_write_mz3GOTO :EOF:write_coded_line:: SUB :write_coded_line:: param 1: data, param 2原创 2013-03-28 16:54:28 · 16632 阅读 · 1 评论