Re: File seek

From: SM Ryan (wyrmwif_at_tango-sierra-oscar-foxtrot-tango.fake.org)
Date: 08/11/04


Date: Wed, 11 Aug 2004 00:15:41 -0000

axvarma@lycos.com (Arvind Varma Kalidindi) wrote:
# Hi,
# I was asked this question in an interview recently. "How do you
# move to the 6th byte in a file?" ... My thinking would be to find the
# data types in the file, set a base pointer and advance it by 6. I
# mean, ptr+6. Another way to ask the same question is how do you move
# to the 3rd record in a file (considering that the file is made up of
# records).

Something here is garbled or missing. There are many different ways of
encoding records in a file, and of indexing (or not indexing) a file's
record. Without information about file and record formats and indexing,
there's no real answer.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
A bunch of savages in this town.


Relevant Pages

  • Re: File seek
    ... axvarma@lycos.com (Arvind Varma Kalidindi) wrote: ... # I was asked this question in an interview recently. ... and of indexing a file's ... Without information about file and record formats and indexing, ...
    (comp.lang.c)
  • Re: File seek
    ... ># I was asked this question in an interview recently. ... ># be to data types in the file, set a base pointer and advance it ... > indexing) a file's record. ... Answering the first sentence in the OPs article: ...
    (comp.lang.cpp)
  • Re: File seek
    ... ># I was asked this question in an interview recently. ... ># be to data types in the file, set a base pointer and advance it ... > indexing) a file's record. ... Answering the first sentence in the OPs article: ...
    (comp.lang.c)
  • Re: File seek
    ... SM Ryan wrote: ... > axvarma@lycos.com (Arvind Varma Kalidindi) wrote: ... > Something here is garbled or missing. ... > encoding records in a file, and of indexing a file's ...
    (comp.lang.c)
  • Re: File seek
    ... SM Ryan wrote: ... > axvarma@lycos.com (Arvind Varma Kalidindi) wrote: ... > Something here is garbled or missing. ... > encoding records in a file, and of indexing a file's ...
    (comp.lang.cpp)