JAVAÎļþ²Ù×÷
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
public class DealFile {
/**
* ɾ³ýÎļþ
* @param filePathAndName String Îļþ·¾¶¼°Ãû³Æ
* @param fileContent String
* @return boolean
*/
public void delFile(String filePathAndName) {
try {
String filePath = filePathAndName;
filePath = filePath.toString();
java.io.File myDelFile = new java.io.File(filePath);
myDelFile.delete();
}
catch (Exception e) {
System.out.println("ɾ³ýÎļþ²Ù×÷³ö´í");
e.printStackTrace();
}
}
/**
* ɾ³ýÎļþ¼Ð
* @param path String Îļþ¼Ð·¾¶
*/
public static void delAllFile(String path){
File file = new File(path);
File[] filelist = file.listFiles();
for(int i=0;i<filelist.length;i++){
if(!filelist[i].isDirectory()){
filelist[i].delete();
System.out.println("Îļþ£º"+fileli
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
JAVA¿ª·¢°ü¹¦Äܼò½é
TerrySMS for Java ÊÇÓÃJAVA¿ØÖÆGSM ModemʵÏÖ¶ÌÐÅÊÕ·¢¹¦ÄܵĿª·¢°ü¡£ÀûÓÃTerrySMS¿ÉÒÔʵÏÖ¿çƽ̨µÄ¶ÌÐÅ·¢ËÍ£¬Ä¿Ç°Ö§³ÖwindowsXP¡¢2000¡¢2003¡¢LinuxµÈ²Ù×÷ϵͳ¡£ÊÇʵÏÖÒµÎñϵͳºÍ¶ÌÐÅϵͳ¼Þ½ÓµÄÀíÏ빤¾ß¡£
JAVA¿ª·¢°ü¹¦ÄܽéÉÜ
1¡¢Ä¿Ç°Ö ......
java WEBÈí¼þ¿ª·¢ÖеÄһЩÌå»á£¬ËüÓÉһϵÁÐ֪ʶ×é³É£¬ÎªÁËʵÏÖÒ»¸ö¹²Í¬µÄÄ¿µÄ£¬¼´Ò»¸ö°²È«£¬Îȶ¨£¬¿ÉÀ©Õ¹µÄÈí¼þ¡£
×ܽáÈçÏ£º
1 java»ù´¡
2 ²Ù×÷ϵͳ£¨windows£¬linux£¬unixµÈ£©
3 Êý¾Ý¿â£¨oracle£¬mysql£¬sqlserver£©
4 jsp£¨html£¬css£¬javascript£¬Ajax£¬XMLµÈ£©
5 Jsp·þÎñÆ÷£¨tomc ......
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import au.com.bytecode.opencsv.CSVWriter;
public class CsvDemo {
public static void main(String[] args) throws IOException {
  ......
ÏÖÔÚÎÒÃÇÒ»ÆðÀ´¿´¿´£¬ÓÃJavaÈçºÎ²Ù×÷Microsoft Word¡£
jacob£¬¹ÙÍøÊÇhttp://danadler.com/jacob ÕâÊÇÒ»¸ö¿ªÔ´µÄ¹¤¾ß¡£×îа汾1.7
¹Ù·½µÄ½âÊÍÊÇ£ºThe JACOB Project: A JAva-COM Bridge
ÕâÊǹٷ½¶ÔÏÂÔØÎļþµÄ˵Ã÷£º
jacob.jar: a ......