Re: File seek
From: SM Ryan (wyrmwif_at_tango-sierra-oscar-foxtrot-tango.fake.org)
Date: 08/11/04
- Next message: Denis Remezov: "Re: Overloaded operators ++(), - - ()problem"
- Previous message: Dave: "Improper argument deduction???"
- In reply to: Arvind Varma Kalidindi: "File seek"
- Next in thread: RCollins: "Re: File seek"
- Reply: RCollins: "Re: File seek"
- Reply: CBFalconer: "Re: File seek"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Denis Remezov: "Re: Overloaded operators ++(), - - ()problem"
- Previous message: Dave: "Improper argument deduction???"
- In reply to: Arvind Varma Kalidindi: "File seek"
- Next in thread: RCollins: "Re: File seek"
- Reply: RCollins: "Re: File seek"
- Reply: CBFalconer: "Re: File seek"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|