Click here to Skip to main content
15,921,113 members
Home / Discussions / C#
   

C#

 
AnswerRe: container-like behavior Pin
Nader Elshehabi28-Nov-06 23:53
Nader Elshehabi28-Nov-06 23:53 
QuestionViewState property of asp.net Textbox Pin
karam chandrabose28-Nov-06 18:32
karam chandrabose28-Nov-06 18:32 
AnswerRe: ViewState property of asp.net Textbox Pin
quiteSmart28-Nov-06 20:00
quiteSmart28-Nov-06 20:00 
GeneralRe: ViewState property of asp.net Textbox Pin
saud_a_k28-Nov-06 20:41
saud_a_k28-Nov-06 20:41 
GeneralRe: ViewState property of asp.net Textbox Pin
karam chandrabose28-Nov-06 21:17
karam chandrabose28-Nov-06 21:17 
QuestionCompiling .Net Remoting Client Pin
wasife28-Nov-06 17:15
wasife28-Nov-06 17:15 
AnswerRe: Compiling .Net Remoting Client Pin
karam chandrabose28-Nov-06 18:37
karam chandrabose28-Nov-06 18:37 
QuestionAsynchronous reading and writing text files Pin
Mohsen28-Nov-06 16:11
Mohsen28-Nov-06 16:11 
Hi guys,

I have a specific problem.

A so called "Diagnostic Box" of some mechanical machinery senses some measurements/parameters of the machine and stores them in 3 types of text files. Type 1 contains parameter 1-6, Type 2 contains parameter 7-14, Type 3 contains parameter 15-16. So we have 16 different parameters of machine that are storing in these 3 types of files. This diagnostic box does this job for the periods of time defined by the user, so I have the parameters stored in these 3 types of file with the date & time for each reading/sensing of the machine parameters.

I receive lots of files from each type periodically. Due to some requirements I have to perform a change in the structure of these files and that is: to read-in all the data from all files and store each parameter separately in one file specific for that parameter of course with its date & time for each reading/sensing.

So to say it simple for example in my conversion application I will open the type 1 file and read the first line which gives me a date & time value and 6 parameters value then I put each parameter value and its date & time value in one file. And so on for the 2nd type and 3rd type. (I have to add that the parameters for different date & time are stored line by line and delimited by 'tab' character so I can distinguish between them easily.

I have implemented this conversion app and I have done it in a sequential way or better to say synchronous mode of File/IO. Meaning reading files one by one and while reading one line writing to 6 or 8 or 2 (depending on file types) different files. I have to add its also simple for me to differentiate between different file types because same file types are named with the same pattern. (e.g. 1-6_000000.txt, 7-13_000000.txt and 14-15_000000.txt)

But it takes a lot of time when I have to perform this conversion for large number of files that I receive.

I want to know how I can improve performance using asynchronous File/IO in VB.NET or C#. On my own I have tried to make use of asynchronous File/IO operations provided by .Netframework but I think still I cant figure it out correctly how to do it to get a performance hit in my specific case.

Plz help me in this regard.

Thanks

AnswerRe: Asynchronous reading and writing text files Pin
lost in transition 29-Nov-06 16:08
lost in transition 29-Nov-06 16:08 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen30-Nov-06 9:40
Mohsen30-Nov-06 9:40 
GeneralRe: Asynchronous reading and writing text files Pin
lost in transition 30-Nov-06 11:37
lost in transition 30-Nov-06 11:37 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen30-Nov-06 12:26
Mohsen30-Nov-06 12:26 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen2-Dec-06 8:32
Mohsen2-Dec-06 8:32 
GeneralRe: Asynchronous reading and writing text files Pin
lost in transition 4-Dec-06 3:08
lost in transition 4-Dec-06 3:08 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen4-Dec-06 5:09
Mohsen4-Dec-06 5:09 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen6-Dec-06 22:11
Mohsen6-Dec-06 22:11 
QuestionDatagrid view keyboard capture Pin
~~~Johnny~~~28-Nov-06 15:47
~~~Johnny~~~28-Nov-06 15:47 
AnswerRe: Datagrid view keyboard capture Pin
Nader Elshehabi28-Nov-06 23:15
Nader Elshehabi28-Nov-06 23:15 
QuestionDatagrid rows Pin
Naji.A28-Nov-06 15:36
Naji.A28-Nov-06 15:36 
AnswerRe: Datagrid rows Pin
hanjian28-Nov-06 17:13
hanjian28-Nov-06 17:13 
GeneralRe: Datagrid rows Pin
Naji.A28-Nov-06 17:26
Naji.A28-Nov-06 17:26 
QuestionData Binding to a IBindableComponent (ComboBox/ListBox) Pin
Dowfen28-Nov-06 12:54
Dowfen28-Nov-06 12:54 
AnswerRe: Merge two files Pin
Paul Conrad28-Nov-06 12:32
professionalPaul Conrad28-Nov-06 12:32 
QuestionSplash screen time out? Pin
amatbrewer28-Nov-06 11:53
amatbrewer28-Nov-06 11:53 
AnswerRe: Splash screen time out? Pin
Amar Chaudhary28-Nov-06 12:41
Amar Chaudhary28-Nov-06 12:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.