public void write(String filename) throws FileNotFoundException,
			IOException {
		String temp;

		BufferedWriter file = new BufferedWriter(new FileWriter(filename));

		try {
			file.write(String.valueOf(L.length) + "\r\n");

			for (int i = 0; i < L.length; i++) {
				temp = "";
				for (int j = 0; j < L.length; j++)
					temp += String.valueOf(L[i][j]) + delim;
				file.write(temp + "\r\n");
			}

			for (int i = 0; i < urls.length; i++)
				file.write(urls[i] + "\r\n");
		} catch (FileNotFoundException e) {
			throw e;
		} catch (IOException e) {
			throw e;
		} finally {
			file.close();
		}
	}