VB.NET slower in writing .txt file?

  • Thread starter Thread starter C.H.
  • Start date Start date
C

C.H.

Hello, I am writing to a .txt file. Lots of data, about
1.1MB. It only took less than a second for VB6 to do so,
but it took VB.NET one minute!!

I am using a simple fileopen and print.

Does anyone have any ideas? I've noticed that .NET runs
slower for my other programs too.

thanks in advance for any suggestions.
 
C.H. said:
Hello, I am writing to a .txt file. Lots of data, about
1.1MB. It only took less than a second for VB6 to do so,
but it took VB.NET one minute!!

I am using a simple fileopen and print.

Does anyone have any ideas? I've noticed that .NET runs
slower for my other programs too.

thanks in advance for any suggestions.

I am not sure what you're doing, but I would start using the Stream classes.
If you're just writing formatted text, then you may not even need to change
your code much. If you are writing binary data, then you should consider
using a binary mode or serializing your objects.

HTH,
Jeremy
 
C.H. said:
Hello, I am writing to a .txt file. Lots of data, about
1.1MB. It only took less than a second for VB6 to do so,
but it took VB.NET one minute!!

I am using a simple fileopen and print.

Does anyone have any ideas? I've noticed that .NET runs
slower for my other programs too.



Did you read Ken's answer to the same question?

Armin
 
Back
Top