added constructor for filereader/writer (string)