Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/27/02 08:23
Read: times


 
#29751 - RE: Removing a Cr Linefeed from data strea
keep the program simpler like this :-

int main(int argc, char *argv[])
{
char szBuf[1024];

while(fgets(szBuf)!=NULL)
{
for(int i=0;i<strlen(szBuf);i++)
{
if(szBuf[i]!='$')
{
printf("%c",szBuf[i])
}
}
}
}

this will remove all occurences of the dollar sign '$' from your file. use it like this on the command line:-

e.g. if you call the program 'strip'

c:> strip < input.txt > output.txt


Chris.


List of 17 messages in thread
TopicAuthorDate
Removing a Cr Linefeed from data strea            01/01/70 00:00      
   RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      
RE: Removing a Cr Linefeed from data strea            01/01/70 00:00      

Back to Subject List