line count

by (no login)

a) if we open the book at the beginning we know how many lines we loaded, so at reopening we should loop until the known line number.

b) if we searched a word and open the book at that word, we know also how many lines were loaded before that word. So at any time the line count is easy to know and save, and at next reopening we should loop until the line, doing nothing. Hope this is fast enough (7,9 Mh only)

L

Posted on Jul 23, 2008, 2:11 AM
from IP address 86.68.188.41

Respond to this message   

Goto Forum Home


Response TitleAuthor and Date
Using QBASIC's indexing would be faster/"better" on Jul 23
 it certainly would be fastermennonite on Jul 23
  Random Files have no advantages over binary files except... on Jul 23
   i've always assumed that if your project is large enough, you'll need binary anywaymennonite on Jul 23
    Yes, as would I...but this is to say..... on Jul 23
     naturally, i disagreemennonite on Jul 23
      Here's another definition of random file. on Jul 23
       Re: Here's another definition of random file.Anonymous on Jul 23
        ahh, but ... on Jul 23
         i wish you could show me how that's truemennonite on Jul 23
          Elementary my dear menn ;) always wanted to say that. on Jul 23
           * 30$ faster? I guess time really is moneyqbguy on Jul 23
            LOL I thought that was a given ;). lol. on Jul 23
             * More than two LOLs in one post = need to go in the Laughter ForumForum Police on Jul 23
             LOL My bad ;).... on Jul 23
              Please move the post above to the appropriate forum at...Note to Pete on Jul 23
               ROFLMAO.... on Jul 23
                * I hereby declare this thread as HIJACKED! Thanks folks on Jul 23
                 *yes, this has gone from how to write the op's program to how to write the op's programmennonite on Jul 24
                 Not sure what hijack means to you but I don't see it here. on Jul 24
                  * I don't wanna ride on a plane with me either :-D on Jul 24
 it works...:) on Jul 23
  Blank Lines are not records. 0 length versus 100 on Jul 23
   that certainly is a point in its favormennonite on Jul 23
    For this job, RANDOM may be overkill on Jul 23
     well that's the thing, i think it usually ismennonite on Jul 23
      * TYPE works better for me. Just show them that instead. on Jul 23
       I'm creating an article on the FIELD statement.... on Jul 23
        *The program MONEY.BAS that came with QBasic uses FIELD (I have a copy if you want one). on Jul 23
         * IF it's the one that originally came with QBasic, I want it ;) please. on Jul 23
          *Check your mail. on Jul 23
           *Bob, I don't have the Money.Bas either. Could you send it? on Jul 23
            *On the way. on Jul 23
        While your at it. ADD a FAQ for file access modes too. on Jul 23
         i didn't think the purpose of the forum was to write faq's all the timemennonite on Jul 24
          *Your right! You DON'T think.........you twitter about nothing on Jul 24
   Anyway, disk space is an issue on Jul 23
    * I sure hope not! You won't be programming long if it is. on Jul 23
     This is supposed to run on an vintage palmtop on Jul 23
      use sequential thenmennonite on Jul 23
      * My QB folder is over 300 MB alone. on Jul 23
  RE: RANDOM and file size on Jul 24
   Ironically, I could have used RANDOM instead of BINARY for indexing in my previous example on Jul 24
   Thanks i will try this on Jul 24
   Size ok nice solution on Jul 24
   Couldn't you have used simple Integer instead of & ? on Aug 5
If you just use lnes of text data, you can use Sequencial files on Jul 23
 *sequential is good. binary and sequential files could still be edited in notepad.mennonite on Jul 23
  I remember trying to edit them LOL on Jul 23
   i mean if you used sequential or binary to simulate randommennonite on Jul 23