Can anyone recommend the best way to validate text input from an ascii file?
Each line of my input file is expected to be:
Some Text \t Some Text \t Some Text\n
However, if the program encounters a line with only whitespace, an exception is raised.
Here is a code snippet (without any...
Yes this absolutely worked. Thanks a lot for generously writing out that code for me. For anyone also using this, do these 2 minor tweaks.
(1) comment out the parenthesis with a backslash
(my_string[q]=='\)')
(2) the inner loop constraint is just w<strlen(my_sting);
I went to uiuc too. :)...
I'm trying to delete all instances of . , ' ( ) in a string
char *mystring
I'm not sure how to do this - the compiler won't let me substitute with an empy string. (i.e., mystring[0] = ''; doesn't work).
Is tokenization and concatenation the way to go or is there a simpler function I am...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.