Trying to load complete log file into string before writing to file, so far unsuccessful