Questions tagged [seek]

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

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

ANSI C in section 2.3.12.10 specifies thatfseek has the argument structure:

int fseek(FILE *stream, long offset, int whence);

Where:

  • stream is the FILE object to seek (note that this does not have to physically be a file)
  • offset is how much, relative to the whence argument
  • whence is one of
    • SEEK_SET (offset is computed relative to the start of the file)
    • SEEK_CUR (offset is computed relative to the current position)
    • SEEK_END (offset is computed relative to the end of the file)

The majority of languages based upon C, and even many that aren't, have inherited something similar to fseek, but have probably put it somewhere else (ex. Python's file.seek). Check your language of choice's documentation for details.

537 questions
0
votes
0 answers

HttpWebRequest POST Login error 405

Im trying to make a small login system but i have this problem that when the project runs on VS2010 it says : The remote server returned an error: (405) Method Not Allowed. Heres my code: //Our URL string uri =…
Ccortina
  • 587
  • 14
  • 31
0
votes
0 answers

AVPlayerDemo Advancing to next frame for first time when the current time is zero .

I am using AVPlayerDemo open source code for play back of chosen video. The reason why I am using AVPlayerDemo is seeking of each frame is easy compared to MPMoviePlayerController. In the AVPlayerDemo sample code , I have added a button "Next"…
user1305194
  • 9
  • 1
  • 6
0
votes
1 answer

LNK 1106 : invalid file or disk full : cannot seek to 0x4361bd8c

We have a very old VC++ Application which was actually built using VC++2.2. We have installed VC++4.2 Developer Studio IDE. I'm trying to build the project and getting the following error. libct.lib : fatal error LNK1106: invalid file or disk full:…
0
votes
1 answer

Best file stream seek pattern for binary file in .NET/Windows

Im trying to read a binary file where the data I'm interested in is separated across the file. Which read pattern is better? (suppose initial stream position is at byte 0) read(count=8192), seek(offset=20480, origin=Current), read(count=8192),…
Paul
  • 1,757
  • 2
  • 11
  • 21
0
votes
1 answer

Seek video position width video from another domain

http://www.67games.com/video.html You will notice after the video starts that if you try to jump to another position in the video it will reset and start over. So that is the problem. As you can see the source is external. This uses JW PLayer, but I…
razvan
  • 13
  • 1
  • 6
0
votes
1 answer

Finding offset of the next carriage return (in byte)

I am reading a file using FileStream. Sometimes my stream position is in a middle of a sentence and I need to move it to the end of the sentence (all sentences are separated by line break). What I am planning to do is finding the offset of the…
blenzcoffee
  • 851
  • 1
  • 11
  • 35
0
votes
1 answer

Flash NetStream.seek method works in local tests but not on server

I have a 20 minute FLV which streams just fine on server. Client would like to preserve user's locations between sessions so time() is saved to mySQL and passed back in as a FlashVar and is (if set) fed to seek() and to a text field for testing. …
jerrygarciuh
  • 21,158
  • 26
  • 82
  • 139
0
votes
1 answer

How to Disable Logging by Android O/S - Seek API

I would like to know how to disable the logging that happens as a result of the Android O/S API and not my payment app itself. http://code.google.com/p/seek-for-android/ I have no control over it as its dependent on the O/S itself and it writes to…
A Mohamed
  • 11
  • 5
0
votes
2 answers

Why red5 and tomcat?

Yes I noticed that red5 sometimes would not be normal, especially when I tried seek() too many times in very short interval. But I was wondering if I deploy the whole red5 to tomcat, what kind of advantages can I get? Also what kind of bad things I…
0
votes
2 answers

Is small size file read/write slower when the file gets bigger?

I am on Ubuntu 12.04 using ext4. I wrote a python program that does small size (mostly 512 byte) read and write with somewhat random access pattern. I found that as the file gets larger and larger. It takes more and more time to do the same number…
dividebyzero
  • 1,243
  • 2
  • 9
  • 17
0
votes
5 answers

analyzing a txt file in python by jumping the n_th element of a list

I have trouble parsing a txt file which contains lines like this: 50.0 0.1 [0.03, 0.05, 0.067, 1.003, ...] 50.0 0.134 [0.3465, 0.5476, 1.0, ....] . . . I don't need the beginning of each line, only the lists! The elements in the lists does not…
chrizz
  • 55
  • 1
  • 1
  • 5
0
votes
1 answer

Cannot seek media element in silverlight

This is the situation. I have a MainPage.Xaml, within this MainPage.Xaml I have embedded a UserControl (VideoWidget.Xaml) (LayouRoot.Children). VideoWidget.Xaml has a mediaElement embedded in its LayoutRoot. I'm trying to Pause/Play the MediaElement…
user849953
  • 57
  • 1
  • 2
  • 10
-1
votes
0 answers

Need a formula for additional quantity needed at a set price to bring down cost avg to equal as close to said price

We have 3 transactions of an item purchased at different prices . The current market price is 10.00 for a total of 6 items with a cost avg of 33.33. (Total investment divided by Quantity) Is there a formula I can enter in excel or Sheets to spit…
jsunsnow
  • 63
  • 6
-1
votes
1 answer

In VB.Net, which file stream accept Seek end Peek methods?

I recently read on Setting position index of filestream that it is possible to use seek() method of BaseStream class. But now, using .Net Framework 4.8 or greater these 2 functions seem to have been deleted. Which stream in .Net 4.8 or greater does…
schlebe
  • 3,387
  • 5
  • 37
  • 50
-1
votes
1 answer

How to find average seek time in disk scheduling algorithms?

Seek Time : The amount of time required to move the read/write head from its current position to desired track. I am looking for formula of average seek time used in disk scheduling algorithms.
1 2 3
35
36