标签:
public static void main(String[] args){ String printerName=""; String path = "C:\\BarCodeConfig\\Printer.properties"; Properties prop = new Properties(); FileInputStream fis; try { fis = new FileInputStream(path); prop.load(fis); fis.close(); printerName= prop.getProperty("printerName"); } catch (FileNotFoundException e) { System.out.println(e); } catch (IOException ex) { System.out.println(ex); } System.out.println("NAME:"+printerName); }
标签:
原文地址:http://www.cnblogs.com/XueRong-7/p/4503855.html