public void writeDefaultIniFilesIfNeeded()
	{
		BufferedWriter output;
		FileOutputStream outputStream;

		File testDir = new File(Constants.DATA_DIR);
		if (!testDir.exists())
		{
			testDir.mkdir();
		}

		File testFile = new File(Constants.MEDIA_LIBRARY_INI);
		if (!testFile.exists() || (testFile.exists() && testFile.length() == 0))
		{
			try
			{
				StringBuilder buffer = new StringBuilder();
				AppOptions options = new AppOptions();
				outputStream = new FileOutputStream(Constants.MEDIA_LIBRARY_INI);
				Writer osw = new OutputStreamWriter(outputStream, "UTF8");
				output = new BufferedWriter(osw);
				buffer.append("[Media Directories]").append(Constants.BR);
				buffer.append("[Media Library Directories]").append(Constants.BR);
				buffer.append("[Media Library Files]").append(Constants.BR);
				output.write(buffer.toString());
				output.close();
				outputStream.close();
			}
			catch (Exception e)
			{
				// eat the error and continue
				_logger.error(ExStack.toString(e));
			}
		}

		OptionsWriter.writeDefaults();

		testFile = new File(Constants.HISTORY_INI);
		if (!testFile.exists() || (testFile.exists() && testFile.length() == 0))
		{
			try
			{
				outputStream = new FileOutputStream(Constants.HISTORY_INI);
				Writer osw = new OutputStreamWriter(outputStream, "UTF8");
				output = new BufferedWriter(osw);
				output.write(UnicodeUtils.getBOM("UTF-8") + "[Recent Playlists]" + Constants.BR);
				output.close();
				outputStream.close();
			}
			catch (Exception e)
			{
				// eat the error and continue
				_logger.error(ExStack.toString(e));
			}
		}
	}