help in reading from file using c++

Discussion in 'Programmer's Corner' started by moslem, Jun 29, 2010.

  1. moslem

    Thread Starter New Member

    Dec 16, 2009
    20
    0
    hello every one
    iwas asking about if there is away to read aspesific line in the file without looping all lines to go to the required line, becuase if the file was very long it will take large time to goto acertain line and it won't be efficient
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,142
    1,790
    Only if all of the lines are the same length. What do you care about efficiency if you can solve the problem.
     
    moslem likes this.
Loading...