Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have one function to pull big data from a txt file, I want to use the technique of treading so that the application does not freeze?

Hope you help,
Posted
Comments
Thanks7872 6-May-15 3:19am    
And your question is?
ulungss 6-May-15 3:23am    
script or syantx for treading my application and put my function

You may find many tutorials just Googling for, see, for instance: "C# BackgroundWorker Tutorial"[^].
 
Share this answer
 
I think what you mean by "treading" is reading a line, or chunk, of the file at a time; this is sometimes referred to as "data virtualization." This enables handling very large files that can not be read into memory completely. "Lazy loading" is another term used to describe this strategy.

Obviously, to use this technique the file itself has to be organized in "meaningful chunks."

Here's the MSDN tutorial on reading a File line-by-line: [^].

Consider revising your question by adding more information about what you mean by "treading."
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900