Braunwald Posted September 10, 2022 at 02:19 PM Share Posted September 10, 2022 at 02:19 PM (edited) Após várias tentativas... estou completamente perdido. tenho um file chamado: test.txt com as seguintes linhas 101 102 char line[1024]; FILE *fp = fopen("test.txt", "r"); //Checks if file is empty if (fp == NULL) { return; } while (fgets(line, 1024, fp)) { if (GetRace() == printf("%s\n", line)) <<<<<<< Como posso fazer, para encontrar todas as linhas do test.txt e fazer o comando { QUERO_FAZER_AS_COISAS_AQUI } } Edited September 10, 2022 at 02:20 PM by Braunwald Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now