Click here to Skip to main content
14,327,007 members
Rate this:
Please Sign up or sign in to vote.
See more:
i want to build an application such as trading termminal, where 50 lakh of record from flat file get loaded in memory or some structure in just 4-5 second.i have seen that in delphi. I don't know how to achieve this.
Each record has 6-7 field and each filed are integer.
khalid mehmood 27-Sep-10 9:27am
check this, might be of you interest

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I am not sure what you are working with, or trying to achieve.

The IO is very fast. I can load 500,000 lines from multiple files before you can blink. In order to use IO in you should import it into the project you are working on. Here are some tips in that area.

at the top, and outside of the bounds of class form.


In order to use the we need to get files.

       Dim d As DirectoryInfo = New DirectoryInfo(Application.StartupPath & "\Files")<br />
        Dim f As FileInfo<br />
<br />
        For Each f In d.GetFiles<br />
<br />
		Dim StreamReader As StreamReader = New StreamReader(F.FullName)<br />
<br />
            Do Until StreamReader.EndOfStream<br />
<br />
                Dim Str As String = StreamReader.ReadLine ‘ do something here<br />
<br />
            Loop<br />
<br />
            StreamReader.Close()<br />
<br />

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100