File seek
From: Arvind Varma Kalidindi (axvarma_at_lycos.com)
Date: 08/10/04
- Next message: Ali Cehreli: "Re: Reprise: Template syntax help"
- Previous message: Dave: "Reprise: Template syntax help"
- Next in thread: Mauricio Lange: "Re: File seek"
- Reply: Mauricio Lange: "Re: File seek"
- Reply: Arthur J. O'Dwyer: "Re: File seek"
- Reply: SM Ryan: "Re: File seek"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Aug 2004 12:46:50 -0700
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).
I told the interviewer that we could do a seek to move to the
specific byte. At that time, the interviewer nodded his head to show
his approval of my answer, but I came to know that he thought there is
a more effective way of doing this. Can anyone throw some pointers on
what that effective way could be?
Regards,
Arvind.
- Next message: Ali Cehreli: "Re: Reprise: Template syntax help"
- Previous message: Dave: "Reprise: Template syntax help"
- Next in thread: Mauricio Lange: "Re: File seek"
- Reply: Mauricio Lange: "Re: File seek"
- Reply: Arthur J. O'Dwyer: "Re: File seek"
- Reply: SM Ryan: "Re: File seek"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|