Computer Science Canada Help with some Input/Output.... |
Author: | Terror Byte [ Sun Feb 19, 2006 11:59 am ] | ||
Post subject: | Help with some Input/Output.... | ||
Okay I have to do several things with a couple of files. I need to remove punctuation marks from a file.
Basically, I can remove the punctuation marks but they get replaced with a space... How do I get rid of the space? I've tried replacing it with "^H" which the Turing Help says acts like a backspace or something.. Can anyone help me out here? |
Author: | Delos [ Sun Feb 19, 2006 12:28 pm ] | ||
Post subject: | Re: Help with some Input/Output.... | ||
Terror Byte wrote:
Look, a space! I wonder what will happen if I... ![]() |
Author: | Terror Byte [ Sun Feb 19, 2006 12:31 pm ] |
Post subject: | |
Oh I did declare letter as a char.. Just forgot to put it in the code.. It's part of a bigger exercize. And it does seem to work. The file I get mirrors the original exactly except all the punctuation marks are gone and replaced with a space. I just want to remove the punctuation marks and remove that space as well. |
Author: | Cervantes [ Sun Feb 19, 2006 12:38 pm ] | ||||
Post subject: | |||||
Sadly, you can't do something like this:
Instead, you have to settle for this:
|