Advertisement
illpastethat

stock props

Jan 20th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. File f = new File("C:\\Users\\adamc_000\\Desktop\\stocks.ini");
  2.         Properties props = new Properties();
  3.         if (!f.exists()) {
  4.            
  5.             try {
  6.                 props.store(new FileOutputStream(new File(f.toString())),
  7.                         "Records Stock Purchases");
  8.             } catch (FileNotFoundException e1) {
  9.                 e1.printStackTrace();
  10.             } catch (IOException e1) {
  11.                 e1.printStackTrace();
  12.             }
  13.         }
  14.         props.setProperty("GOOG", "0");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement