fseek() Function | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for the great explanation. The book I'm reading says that fseek() and ftell() are not guaranteed to work with text files as with binary files so I had to come see if your channel had a video. Excellent as always. Hoping for an ftell() video soon!

nathanaelmoh
Автор

but why it prints only 2 asterisks intead of 4 at the end??
Why 'j' isnt repleased by '*'?

mongraal
Автор

its probably a year or 2 since this video but can we specify prefix numbers if its either text or binary like 0x15 or whatever like that? also i see that fprintf is writing to a file huh? maybe it different for binary one like fwrite?

gamingcomputers
Автор

amazing tutorial and explanation. thanks.

raichirup
Автор

Maybe is more uncomfortable but, since the file handle is a pointer, could we do this of moving the position with pointer aritmethic too? (tho I would never)

germankoga
Автор

thank you sir really easy to understand love from suramadu

vinaldotambunan
Автор

Fseek returns 0 when operation is successful

MonalPrakash
Автор

thank you for that explanation but i have a question, are there any differences between rewind() and fseek() for when you want to place cursor at the beginning?

oaly
Автор

Hi sir, can I ask how to use ftell? As it might relate to fseek :)

alexiszhou
Автор

I've often read that fseek() returns zero if it succeeds. Now I'm bit confused what is right. But thanks for the video.

JameBold
Автор

Could i ask, how do you count for if you fseek(file, -50, SEEK_END) but the file does not have any byte from 50 from the end?

I found that c=fgetc(file) != EOF doesnt catch the error here 😭

wc
welcome to shbcf.ru