There seems to be lot of problems..
in second code can never be null.
What is BufferedFile(do you mean to have some array for holding up the data) and what is the data format in the text file you...