realbasic-nug
[Top] [All Lists]

Anyway to speed up text file read?

To: realbasic-nug at lists dot realsoftware dot com
Subject: Anyway to speed up text file read?
From: "Burke Squires" <burkesquires at gmail dot com>
Date: Wed, 29 Nov 2006 21:27:47 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QrRLgUCs+BDj2CstZcsvSnUXo71k1CQ0lGqF3CRlauCi9lbMju2br3mwVKvmcOnLROOgVaQqwj5G4BsllATgY2b105pbw57ZeH6UiaA71Nu+nITnmbIGQc264PivaO/mCfnoeCwss8eblTTqDGtFGzPdfQkmQH7izUIWtsUbh8I=
Hello all,

For a class project I am programming a basic hidden markov model
project. I need to read a text with with string in it with a total
size of about 5 megabytes. The file loading seems VERY slow...is there
anyway to speed it up? Am I doing something wrong?

 If mfldInputFile <> Nil Then

   txtPath(0).Text = mfldInputFile.AbsolutePath

   mstmInputStream = mfldInputFile.OpenAsTextFile

   While NOT mstmInputStream.EOF

     mstrTemp = Trim(mstmInputStream.ReadLine)

     mstrSequence = mstrSequence + mstrTemp

   Wend

   cHMM.SetSequence(mstrSequence)

 End If

Thanks

Burke
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>