maynard444
Programmer
Hi all,
I am lost on how to insert a carriage return after a ~ and export that to a file. I am pulling a file into a string buffer. At this point I would like to output to a file with carriage returns instead of one long string.The file is a text file (txt).
Here's what I have:
blah~blah*blah~blah*blah*blah*blah~
Here is what I want in the output file.
blah~
blah*blah~
blah*blah*blah*blah~
So basically I want to take the string and split it at the tildas, then output to a file with carriage returns at the end.
Any help that can be given is good.
I am lost on how to insert a carriage return after a ~ and export that to a file. I am pulling a file into a string buffer. At this point I would like to output to a file with carriage returns instead of one long string.The file is a text file (txt).
Here's what I have:
blah~blah*blah~blah*blah*blah*blah~
Here is what I want in the output file.
blah~
blah*blah~
blah*blah*blah*blah~
So basically I want to take the string and split it at the tildas, then output to a file with carriage returns at the end.
Any help that can be given is good.