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 01:02
Read: times


 
#29743 - RE: Removing a Cr Linefeed from data strea
void GetFile(void){
int iLoop = 0;
int iToggle =0;
FILE *fpTempData;
fpTempData = fopen "c:\temp\CvtToHex\TestImage.txt","r");

do{
cBuffer[iLoop]=fgetc(fpTempData);
if (cBuffer [iLoop] == ',' || cBuffer [iLoop] == '$'|| cBuffer[iLoop] == ' '){
//
printf("Do nothing cBuffer == %c n",cBuffer[iLoop]);}
else{
printf("I'm hear %c iloop == % dn",cBuffer[iLoop],iLoop);
iLoop++;

if(/*cBuffer[iLoop-1] != EOF &&*/ iLoop % 16 == 0 ){

cBuffer[iLoop-1] = cBuffer[iLoop];
}
}//end if

}while (iLoop <=19); //while(cBuffer[iLoop-1] != EOF );

printf("nn iloop == %d",iLoop);

return;
}
The difficulty is the symbol for a CR/ Line feed, when I read back the array I find
that the position is empty where the CR is located.
It's a newbe question. But if you know any resources I would appreciate the help.
Thanks Spencer



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