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 11:06
Read: times


 
#29764 - RE: Removing a Cr Linefeed from data strea
"Using gets() will strip either like my program does, so I use that method on UNIX files and DOS files, without any problem :-)"

Do you mean this program?

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

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


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