public static ArrayList<Stock> getStocks() {
		ArrayList<Stock> stocks = new ArrayList<Stock>();		
		File f = new File("stocks.txt");
		try {
			FileReader fr = new FileReader(f);
			BufferedReader br = new BufferedReader(fr);

			String s = "";
			while ((s = br.readLine()) != null) {
				String[] comp = splitLine(s, 3);
				Stock stock = new Stock();
				stock.setNo(Integer.valueOf(comp[1]));
				stock.setPrice(Double.valueOf(comp[2]));
				stock.setTickername(comp[0]);
				stocks.add(stock);
			}

			br.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return stocks;
	}