C# Programming
06-29-2011, 11:22 PM
Hi, i've some method which reads from text file. and returns string[]
i would like to read at the same time from 5 different files (big files...)
so i'll create 5 threads, and pass some string [] wrapped in object, then i'll run those 5 threads, and in the end i'll return some object which contains the data from file which i read...
it works but seems to be a bit "inefficient"...
any different idea will be appreciated
i would like to read at the same time from 5 different files (big files...)
so i'll create 5 threads, and pass some string [] wrapped in object, then i'll run those 5 threads, and in the end i'll return some object which contains the data from file which i read...
it works but seems to be a bit "inefficient"...
any different idea will be appreciated