VB.NET slower in writing .txt file?

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.
 
J

Jeremy Cowles

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
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top