public boolean writeToFile(String fileName) {
		OutputStreamWriter outStream;
		try { outStream = new OutputStreamWriter(new FileOutputStream(fileName), CHARSET); }
		catch(IOException e) { return false; }
		BufferedWriter bufferedWriter = new BufferedWriter(outStream);

		boolean error = false;
		for(Card card : stack) {
			if(!card.writeToFile(bufferedWriter)) {
				error = true;
				break;
			}
		}

		try {
			bufferedWriter.close();
			outStream.close();
		} catch(IOException e) { return false; }

		return !error;
	}