Search:

Type: Posts; User: colorado_scott

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,184

    OK, Thanks for pointing in the right direction...

    OK,

    Thanks for pointing in the right direction CodePlug
  2. Replies
    2
    Views
    1,184

    int conversion operator

    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...
  3. Replies
    12
    Views
    2,816

    Ok it reads the input file correctly.I changed...

    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...
  4. Replies
    12
    Views
    2,816

    got it! at least reading the subsequent lines.It...

    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
  5. Replies
    12
    Views
    2,816

    If I was going to create the inputfiles I would...

    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...
  6. Replies
    12
    Views
    2,816

    input file snippet

    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...
  7. Replies
    12
    Views
    2,816

    reading the next line in a text file

    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...
Results 1 to 7 of 7