FileReader r = new FileReader(fileName);
currentFile = fileName;
i didnt understand this part of the code specially
i am not understanding which methods were used here..........
Good praxis is to always read java doc about certain methods and such.
Hope that clears up a bit.