java ioÕýÈ·¶ÁÈ¡
дÈë
public static void Writer(String value) {
try{
File file2 = new File("F:\\countDB.txt");
if(!file2.exists()){
file2.createNewFile();
}
FileOutputStream writer = new FileOutputStream(file2,true);
OutputStreamWriter rp = new OutputStreamWriter(writer,"GBK");
BufferedWriter tmpBR = new BufferedWriter(rp,1024*1024);
tmpBR.write(value+"\r\n");
tmpBR.flush();
tmpBR.close();
rp.flush();
rp.close();
writer.flush();
writer.close();
}catch(Exception ex){
//ex.fillInStackTrace();
}
}
²éѯ
File file = new File("E:\\DB.txt");
FileInputStream read = new FileInputStream(file);
InputStreamReader rp = new InputStreamReader(read,"GBK");
BufferedReader tmpBR = new BufferedReader(rp,1024*1024);
String tmpLine = tmpBR.readLine();
while (tmpLine != null) {
&n
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
1 String command = " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
2 try {
3 Process process& ......
Java±à³ÌÄÇЩʶù84——IO¼ò½é
I/O´¦Àí¼¼ÊõÊÇJavaÓïÑÔÖÐʵÏÖÎļþ²Ù×÷¡¢ÄÚ´æ²Ù×÷¡¢¿ØÖÆÌ¨ÊäÈëÒÔ¼°ÍøÂç±à³ÌµÄ»ù´¡£¬µ«ÊÇÓÉÓÚI/O¼¼Êõ±¾ÉíµÄÉè¼ÆÔÒò£¬Ò²Ê¹µÃI/O´¦Àí¼¼ÊõµÄÄѶȱȽϴó£¬ÐèÒª»¨·Ñ±È½Ï´óµÄ¾«Á¦½øÐÐѧϰ¡£
11.1 I/O¼ò½é
ÔÚ³ÌÐòÖУ¬ÊäÈëºÍÊä³ö¶¼ÊÇÏà¶ÔÓÚµ±Ç°³ÌÐò¶øÑԵģ¬ÀýÈç´ÓÓ²ÅÌÉ϶Áȡһ¸öÅä ......
×ÜÖ®£¬ÎÞÂÛÊǽø³ÌµÄ¸ÅÄÊÇÏ̵߳ĸÅÄ¶¼Ê¹±à³Ì´Ó´®Ðбà³Ì£¨ÒÀ´ÎÖ´ÐУ©½øÈëµ½²¢Ðбà³Ì£¨Í¬Ê±Ö´ÐУ©µÄÁìÓò£¬¶øÔÚCPUÄÚ²¿ÊµÏÖµÄÔÀí¶¼Êǰ´ÕÕʱ¼äƬ½øÐÐÇл»
2¡¢ ³ä·ÖÀûÓÃϵͳ×ÊÔ´
ͨ¹ýÔÚÒ»¸ö³ÌÐòÄÚ²¿Í¬Ê±Ö´Ðжà¸öÁ÷³Ì£¬¿ÉÒÔ³ä·ÖÀûÓÃCPUµÈϵͳ×ÊÔ´£¬´Ó¶ø×î´óÏ޶ȵķ¢»ÓÓ²¼þµÄÎüÄÜ¡£¾ÍÏñÒ»¸öÈËÍ¬Ê ......
Dear han luoxing,
Thank you for trying YourKit Java Profiler.
Please find your personal evaluation license key below.
With this key, you can evaluate YourKit Java Profiler for 15 days, starting today.
When asked to provide license key, copy and paste the following entire block of lines:
13c970a ......
ÓÉÓÚ¹¤×÷ÐèÒª£¬ÒªÓÃ.netµÄ³ÌÐòµ÷ÓÃÒ»¸öjava±àдµÄweb service½Ó¿Ú£¬½Ó¿ÚµÄÒ»¸ö²ÎÊýÒªÇómd5·½Ê½¼ÓÃÜ¡£
.netÖеÄmd5¼ÓÃÜÊǺÜÈÝÒ׵쬲ÉÓÃmsdnÖиø³öµÄ·½·¨:
// Hash an input string and return the hash as
// a 32 character hexadecimal string.
static string getMd5Hash(string input)
{
......