Top "Seek" questions

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

What is the most efficient way to get first and last line of a text file?

I have a text file which contains a time stamp on each line. My goal is to find the time …

python file seek
How to delete only the content of file in python

I have a temporary file with some content and a python script generating some output to this file. I want …

python file-io seek
Memory Stream in Java

I am looking for a memory stream implementation in Java. The implementation should be roughly modeled after the .NET memory …

java memory stream seek
f.seek() and f.tell() to read each line of text file

I want to open a file and read each line using f.seek() and f.tell(): test.txt: abc def …

python file-io seek tell
seek to a point in html5 video

Is it possible to seek to a particular point in html5 video displayed in a web page? I mean ,can …

html5-video seek
Safe to have multiple processes writing to the same file at the same time? [CentOs 6, ext4]

I'm building a system where multiple slave processes are communicating via unix domain sockets, and they are writing to the …

filesystems multiprocessing seek
Android SeekBar to control MediaPlayer progress

I have a SeekBar, it displays correctly MediaPlayer progress. However, I have troubles with seeking - if I seek scroll …

android media-player seekbar seek
How to seek and append to a binary file in python?

I am having problems appending data to a binary file. When i seek() to a location, then write() at that …

python file seek
c++ fastest way to read only last line of text file?

I would like to read only the last line of a text file (I'm on UNIX, can use Boost). All …

c++ iostream seek
OpenCV Seek Function/Rewind

I've been trying to find/implement a seek and rewind function (for video (.avi)) using OpenCV in C++, but I …

video opencv seek