×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    4

    Text files and heap

    Hi,

    I'm making program that uses rather large textfile some 20 000 lines, a sort of a dictionary. There's one word in a row.

    Should I use it as a text file and then use input streamer to read it? I need to access only one line/word at a time.

    Does the size of this kind text file affect the amount of memory my program needs to run?

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Text files and heap

    you probably should split it, and avoid storing it in memory.
    i would suggest you create one file per letter, at least. because reaching for the latest line of the file while take long time

Similar Threads

  1. Increasing Heap size
    By earamsey in forum Mobile Java General
    Replies: 3
    Last Post: 2007-10-18, 17:58
  2. How to increase default heap in 3rd edition
    By vishaljaiswal in forum Symbian
    Replies: 5
    Last Post: 2007-04-04, 17:25
  3. Replies: 0
    Last Post: 2006-12-01, 21:18
  4. how to increase heap size on emulator.
    By Basu in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-10-27, 15:55
  5. Custom heap allocator?
    By dhaas in forum Symbian
    Replies: 6
    Last Post: 2006-09-29, 03:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×