/**
* Read the 15151431042----123456 document.
* @ Param F
*/
Private Static void findcontent (file F ){
String line = NULL;
Try {
Bufferedreader BR = NULL;
Try {
BR = new bufferedreader (New inputstreamreader (New fileinputstream (F), "GBK "));
} Catch (unsupportedencodingexception E1 ){
E1.printstacktrace ();
}
Try {
Line = Br. Readline ();
While (line! = NULL ){
// Read a record and send an HTTP request
String [] strarr = line. Split ("----");
// System. out. println (strarr [0] + "======" + strarr [1] + "======" + strarr [2]);
Try {
Modify (strarr [0], strarr [1], strarr [2]);
} Catch (exception e ){
E. printstacktrace ();
}
Line = Br. Readline ();
}
} Catch (ioexception e ){
E. printstacktrace ();
}
} Catch (filenotfoundexception e ){
E. printstacktrace ();
}
}
// Test
Public static void main (string [] ARGs) throws exception {
File filename = new file ("D:/code. txt ");
}
Read local text and write to list