Reads file or string