Thank you for your wonderful suggestions. I finally ended by using memfiles as 
suggested by @cblake which improved (reduced) the runtime significantly, but if 
I may ask, does this (below code) load the entire file content into memory?
    
    
    var fs = newMemMapFileStream(paramStr(1), fmRead)
    while not fs.atEnd:
      echo fs.readChar()
    
    
    Run

Reply via email to