Skip to content
UPEEC

fseek and ftell

Move the file position and report where it is.

Easy
Comments 0

fseek(f, 0, SEEK_END); long size = ftell(f); rewind(f); — get a file's size.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.