Search:

Type: Posts; User: Joe1709

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    7,465

    Comparing user input to string in .txt file

    15948
    As the title says, i need help in writing a code where a user inputs a word and it compares the word in a .txt file and print it to the console. Attached is how the file is read
  2. 15942

    15942
  3. the goal is to try and read a txt file and print...

    the goal is to try and read a txt file and print the content in the console
    searching the id, it should display the the information for that specific id on the console
  4. tried it still dosent work

    tried it still dosent work
  5. 15941 ive tried john.c but it is returning to...

    15941

    ive tried john.c but it is returning to the same error
  6. Not that this is a part of my code and all int...

    Not that this is a part of my code and all int have been initialized from the start
  7. Problems with Reading and copying string from txt to console

    As mentioned above I have a problem with the code below



    printf("\n**ID Search**");
    printf("\nEnter ID:");
    scanf("%s", &id2);
    fp = fopen("registration.txt", "r");
Results 1 to 7 of 7