thejwal pavithran wrote:okay...actually i have written a method which operates on a file through a BUfferedReader passed to it as an argument..i wanted to print the file to which the BufferedReader was associated.
Then my suggestion would be to create a
BufferedFileReader class of your own that extends BufferedReader, for all the reasons already mentioned.
Winston