reading and sorting from multiple textfiles in visual basic

Закрито Опубліковано %project.relative_time Оплачується при отриманні
Закрито Оплачується при отриманні

Hi,

I have following problem which i cannot solve properly.i have a large number of textfiles (ca.300, and each 10MB large) containing time ordered data for a specific stock. i would want to write a function that sorts the contents of the textfiles and reads the lines inside the textfiles line by line and orders them by time. e.g.

text file 1:

stock,time,price

WPP.L,12:31:01,123

WPP.L,12:34:05,124

WPP.L,12:38:09,125

text file 2:

stock,time,price

VOD.L 12:31:00 323

VOD.L 12:33:05 325

VOD.L 12:37:19 327

text file 3:

stock,time,price

PRTY.L,12:30:11,543

PRTY.L,12:33:15,542

PRTY.L,12:36:12,541

should result in

PRTY.L,12:30:11,543

VOD.L,12:31:00,323

WPP.L,12:31:01,123

VOD.L,12:33:05,325

PRTY.L,12:33:15,542

WPP.L,12:34:05,124

PRTY.L,12:36:12,541

VOD.L,12:37:19,327

WPP.L,12:38:09,125

since the files are very large i wouldnt want to put the files in memory but rather sorting them and reading them line by line on the fly as previously described.

I would like to avoid following approach since the files are too big to read them into memory

Use a 3D array to keep temporary data.

1. Read each file and populate this array.

2. Close the file

3. Sort the array using any sorting algorithm. (this is the heaviest part!)

4. Write the array contents to new file(s)

The reading and sorting on the fly should be very quick and efficient.

thanks

PS

i am not a great programmer and never did anything with multithreaded applications and this is just an idea. perhaps there a way one could create a multithreaded application where each thread reads one file and calls an event whenever the timestamp in a file is the next one to be displayed? This would create an asynchroneous output which would simulate a real time feed

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

windwows XP, visual basic or VB.NET

Введення даних Техніка MySQL PHP Архітектура ПЗ Тестування ПЗ Веб-хостинг Управління веб-сайтами Тестування сайтів

ID Проекту: #3936783

Про проект

22 заявок(-ки) Дистанційний проект Остання активність Dec 7, 2006

22 фрілансерів(-и) готові виконати цю роботу у середньому за $49

nirandas

See private message.

$42.5 USD за 5 дні(-в)
(90 відгуків(и))
7.3
deepbluetech

See private message.

$22.1 USD за 5 дні(-в)
(200 відгуків(и))
6.9
Wonderer

See private message.

$85 USD за 5 дні(-в)
(72 відгуків(и))
6.3
iceiscool

See private message.

$68 USD за 5 дні(-в)
(157 відгуків(и))
5.8
juanjimenezdvw

See private message.

$34 USD за 5 дні(-в)
(82 відгуків(и))
4.9
qcodervw

See private message.

$59.5 USD за 5 дні(-в)
(58 відгуків(и))
5.1
app33

See private message.

$25.5 USD за 5 дні(-в)
(45 відгуків(и))
5.1
hirenkotadiya

See private message.

$17 USD за 5 дні(-в)
(26 відгуків(и))
5.0
vw2244935vw

See private message.

$42.5 USD за 5 дні(-в)
(41 відгуків(и))
4.5
santadreams

See private message.

$51 USD за 5 дні(-в)
(71 відгуків(и))
4.9
lerend

See private message.

$21.25 USD за 5 дні(-в)
(13 відгуків(и))
4.3
amitvce

See private message.

$51 USD за 5 дні(-в)
(11 відгуків(и))
3.1
schamara

See private message.

$17 USD за 5 дні(-в)
(9 відгуків(и))
3.2
idesignsvw

See private message.

$76.5 USD за 5 дні(-в)
(2 відгуків(и))
1.9
BilyFernandez

See private message.

$17 USD за 5 дні(-в)
(2 відгуків(и))
0.7
ligthcoder

See private message.

$85 USD за 5 дні(-в)
(3 відгуків(и))
0.8
inovatiovw

See private message.

$8.5 USD за 5 дні(-в)
(5 відгуків(и))
0.3
msmena

See private message.

$85 USD за 5 дні(-в)
(0 відгуків(и))
0.0
freakazoid12

See private message.

$42.5 USD за 5 дні(-в)
(0 відгуків(и))
0.0
vedprakashg

See private message.

$85 USD за 5 дні(-в)
(2 відгуків(и))
0.0