seek
Is Python's seek() on OS X broken?
I\'m trying to implement a simple method to read new lines from a log file each time the method is called.[详细]
2023-01-11 07:47 分类:问答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开发者_如何学C. My goal is to find the time range. All the times are in order so the first line will be the earliest time and the last line w[详细]
2023-01-09 06:46 分类:问答Ways of Efficiently Seeking in Custom File Formats
I\'ve been wondering what kind of ways seek is implemented acros开发者_Python百科s different file formats and what would be a good way to construct a file that has a lot of data to enable efficient se[详细]
2023-01-05 03:20 分类:问答Android VideoView resume and seekTo
I am playing a Video using a VideoView in my app. On the click of a button, it records the current position of the video, and the app opens up the browser with some url. On pressing the back button, t[详细]
2023-01-02 22:38 分类:问答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 my application was able to use lseek() and write() lots of times.[详细]
2022-12-25 16:17 分类:问答How to directly access a certain part of a text file in g++?
I have a text file containing a number of records. Each record is stored on a single line that is 100 characters long.开发者_开发技巧[详细]
2022-12-24 10:44 分类:问答Why am I getting error while trying to seek in my streaming video player
I\'m building a video player here: http://leongaban.com/stackoverflow/RTMP/ It\'s streaming RTMP, and I\'m trying to get my video to seek correctly if the user clicks on the groove bar (gray bar unde[详细]
2022-12-18 14:07 分类:问答Any seekable compression library?
I\'m looking for a general compression library that supports random access during decompression. I want to compress wikipedia into a single compressed format and at the same time I want to decompress/[详细]
2022-12-15 22:31 分类:问答How can I reset a file handle receiving standard input in Perl?
When I issue a Perl script some standard input, e.g. $ awk \'{print $1\"\\t\"$2}\' foo.txt | myScript.pl[详细]
2022-12-14 05:29 分类:问答How to get the current open file line in python?
Suppose you open a file, and do an seek() somewhere in the file, how do you know the current file line ?[详细]
2022-12-12 13:01 分类:问答