function to first pull data, edit it, and then open (while truncating) again to write. My problem is that when I go to write the edited data, there is a single whitespace character as the very first character in the file. Another renegade whitespace is found nowhere else in the file, and I've done some testing and I've found it's only when I use
with the ">" that the extra space occures. What is wrong with what I am doing? The data is simple text in lines, and I am writing to the file using a foreach loop. Any help would be greatly appreciated.