Actually I'm of the impression that seek function may eat up a lot of time if I'm suppose to execute it in a loop.
What makes you think that?
I need to traverse a file and I may require constant vertical movement. But then performance is an issue here.
Are you sure a file is actually your best option? Perhaps you are better off storing your data in a database. (But then, since your post doesn't say anything about the problem you are working on, it's just a pure guess).
I'm willing to initialise file pointers at the place where it is required. Is there a way to do that. Thanks for your reply.
A file pointer is just some structure holding some information. One field of that structure is the "offset". Reading or writing updates the offset. So does a seek.

In reply to Re^3: Initialsing file pointer in the middle of a file. by JavaFan
in thread Initialsing file pointer in the middle of a file. by sabertooth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.