Java: Convert File to Char Array

Here is the code for converting a file to a char array.

	public static char[] ReadFileToCharArray(String filePath) throws IOException {
		StringBuilder fileData = new StringBuilder(1000);
		BufferedReader reader = new BufferedReader(new FileReader(filePath));
		char[] buf = new char[10];
		int numRead = 0;
		while ((numRead = != -1) {
			String readData = String.valueOf(buf, 0, numRead);
			buf = new char[1024];
		return  fileData.toString().toCharArray();	
Category >> Real Methods  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
String foo = "bar";