I have a solution....its not the best right now, as I'm really an intro programmer...but...I've had similar problems dealing with text that needed to be formatted, and ended up writing a program for it. I've not yet had a chance to learn file IO (god, I have WAY too many other things to do, and while it'd only take a little while, I just don't have the time yet), so to use the program you still need to use file redirection (*proggyname.exe* < *fileinput* > *fileoutput*
an example would be "c:\>setispylog.exe < fileinput.txt > fileoutput.txt"
If you find it useful, throw up a link or whatever, but please do give me credit....
Using it the sourcecode for the program produces this:
#include..<stdio.h>
#include..<string.h>
void..init_string(char..*string)
{
......int..index;
......for(index..=..0;..index..<..509;..index++)
......{
............string[index]..=..'\0';
......}
}
int..main()
{..
......char..string[509];
......int..index;
......int..str_length;
......
......init_string(string);
......
......while(gets(string)..!=..'\0')
......{
............str_length..=..(strlen(string));
............printf("\n"
😉;..............
............for(index..=..0;..index..<..str_length;..index++)
............{
..................if(string[index]..==..'.')
........................string[index]..=..'.';
..................if(string[index]..==..'..')
..................{
........................printf("."
😉;
........................string[index]..=..'.';
..................}
..................
..................if(string[index]..==..'\t')
..................{
........................printf("............."
😉;
........................string[index]..=..'.';
..................}
..................printf("%c",..string[index]);
............}
......}
......return..0;
}..
The compiled program can be found at
this place. You'll have to right click, and do a file-save as, but that shouldn't be too tough
🙂 I wrote the program more for formatting log files for Seti@Home, but I've found that it works just fine on most anything
🙂
BTW - the string length is the 509 because that's the "maximum minimal" number that the C standard requires... anything higher and...well, I don't know the reason, I just know that it is....Oh yeah, and it prints out so many freaking periods because the font that the forums use makes the period to take up the width of half any other character. Thus, it prints out two to make up for it....
And one other thing - criticizm is welcome, but laughing at it isn't
😀
Enjoy....