public void updateScriptFile(File f, Vector<String> actions) {

		BufferedWriter writer = null;
		Iterator it = actions.iterator();

		try {
			if (f.canRead() && !it.equals(null)) {
				writer = new BufferedWriter(new PrintWriter(new FileWriter(f)));
				while (it.hasNext()) {
					writer.write(it.next().toString());
					writer.newLine();
				}
			}

			writer.close();
		} catch (FileNotFoundException e) {
		} catch (IOException e) {
		} finally {
			if (writer != null) {
				try {
					writer.close();
				} catch (IOException e) {
					// do nothing
				}
			}
		}

	}