|
Not C#, but take a look at the source code for the gnu utility sed - it does search/replace on strings in a stream of output/input/etc. Assuming your file already existed, you could use the gnu textutils (there are win32 versions) to do
cat createdfile | sed s/\\/-/g | sed s/\~/-/g | sed s/\^/-/g | sed s/\&/and/g | cut -f 1-8 -d " " > new_file_with_replacements
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.”
|