Top "Seek" questions

Seeking is the act of moving around a file or file-like object.

how to seek to the end of file to determine the file size?

I'm trying to get file size in c programming using seek. I can't use fseek, stat.size nor ftell, there's …

c filesize seek
Read specific bytes of file in python

I want to specify an offset and then read the bytes of a file like offset = 5 read(5) and then read …

python seek
lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)

My application uses lseek() to seek the desired position to write data. The file is successfully opened using open() and …

c file-io handle seek
How can I seek to frame No. X with ffmpeg?

I'm writing a video editor, and I need to seek to exact frame, knowing the frame number. Other posts on …

c linux ffmpeg seek
Using FileStream.Seek

I am trying to work with FileStream.Seek to quickly jump to a line and read it. However, I am …

c# file search filestream seek
Stream wrapper to make Stream seekable?

I have a readonly System.IO.Stream implementation that is not seekable (and its Position always returns 0). I need to …

c# .net stream naudio seek
How is Average Seek Time Calculated?

A hard disk system has the following parameters : Number of tracks = 500 Number of sectors/track = 100 Number of bytes /sector = 500 Time …

file filesystems seek
Perl seek function

This problem was solved. Thank you very much. My question and the solution I am using is stated below. Question: …

perl seek
C, unix and overwriting a char with write(), open() and lseek()

I need to replace the a character in a text file with '?'. It's not working as expected. The …

c file seek
How to write at a particular position in text file without erasing original contents?

I've written a code in Python that goes through the file, extracts all numbers, adds them up. I have to …

python python-3.x seek file-writing