OK,
Thanks for pointing in the right direction CodePlug
Type: Posts; User: colorado_scott
OK,
Thanks for pointing in the right direction CodePlug
Is there a "%?" conversion operator for binary?
for example ...
scanf("%d",&a);
printf("%x",a);
will convert a decimal number to a hexadecimal number.I didn't see a way to convert to...
Ok it reads the input file correctly.I changed the while statement at the end of the input loop to
while((strcmp(item_num,searchkey)) !=0);
It still doesn't seem to break out of the loop.Is this...
got it! at least reading the subsequent lines.It doesn't seem to break out of the do-while loop though. Any thoughts?
Thank you Penney for pointing me in the right direction.
Scott
If I was going to create the inputfiles I would try binary.However I'm working with a flatfile database.So text is the rule.I was planning on cleaning up the code later and placing all the character...
Penny, here's a snippet of the input file.
I tried changing the number of characters that fgets pulled for each and the way it is right now the firstline reads correctly.
Scott
9330 100...
Hello,
I'm having trouble getting my file pointer to increment to the next line accurately.It reads the first line just fine,but when it loops thru the second time it reads the text from different...