private static void openFile() {
		if (Indexer.indexFile != null) {
			return;
		}
		try {
			Indexer.tempDataBaseFile.createNewFile();
		} catch (IOException ioe) {
			System.err.println("Can't create temp file index: " + ioe.getLocalizedMessage());
		}
		try {
			Indexer.indexFile = new OutputStreamWriter(new GZIPOutputStream(new FileOutputStream(Indexer.tempDataBaseFile)), "UTF-8");
		} catch (FileNotFoundException ioe) {
			System.err.println("Temp file index impossible to write");
		} catch (IOException ioe) {
			System.err.println("I/O error while creating compressed file stream: " + ioe.getLocalizedMessage());
		}
		if (Indexer.indexFile == null) {
			System.err.println("Couldn't open temp file index");
		}
	}