protected static String read(Reader file) throws IOException {
		final StringBuilder content = new StringBuilder();
		try (BufferedReader reader = new BufferedReader(file)) {
			String line = reader.readLine();
			boolean first = true;
			while (line != null) {
				if (first) {
					first = false;
				} else {
					content.append("\n"); //$NON-NLS-1$
				}
				content.append(line);
				line = reader.readLine();
			}
		}
		return content.toString();
	}
protected static String read ( Reader file ) throws IOException { final StringBuilder content = new StringBuilder ( ) ; try ( BufferedReader reader = new BufferedReader ( file ) ) { String line = reader . readLine ( ) ; boolean first = true ; while ( line != null ) { if ( first ) { first = false ; } else { content . append ( "\n" ) ; } content . append ( line ) ; line = reader . readLine ( ) ; } } return content . toString ( ) ; }
Read the content of a file.

@param file the file to read.
@return the content.
@throws IOException if the content cannot be read.