C Tutorial - 27 - Read Integer Values from a Text File in C

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

yo your explanation was great! I just did my homework and understood it completely. May you have good days forever <3

mushroom
Автор

what about if i want to read if it's int time type.. like int he file there is 20 liine and in every line there is somethin like this: 12:13:14 but i just want read the numbers??
please help me
,

muhammedadem
Автор

I can just use the number I scanned from the file as a regular interger?

So like, if genericNumber = 15, I can say


Int total = 0;
If(genericNumber % 5 ==0){
Total = genericNumber + total;
}

Printf("And it would give me: %d", total);

And it would give me: 5

bud