added some more methods for fileinput and output readers