473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

VB.NET slower in writing .txt file?

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.

Nov 19 '05 #1
2 2776
"C.H." <su***@yahoo.com.sg> wrote in message
news:0a****************************@phx.gbl...
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

Nov 19 '05 #2
"C.H." <su***@yahoo.com.sg> schrieb
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
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
1
by: Code4u | last post by:
Hello, we are investigating the use of SQL Server as a backend to our scientific imaging application. We have found that when we write a large image (60 Megabytes) the performance is quite a bit...
14
by: Roy Gourgi | last post by:
Hi, How much is C# slower than C++? TIA Roy
3
by: GP | last post by:
We are connecting to sql server database in the webservices & retrieve the data as dataset from the webservices and load it to the aspx pages ,But we find loading of the aspx pages takes longer...
2
by: jeffrey.bigham | last post by:
Hello, I'm writing a program that needs to read input line by line and analyze each, and it needs to be as efficient as possible. I wrote the following sample program that works, but is 10...
10
by: m00nm0nkey | last post by:
Hello. I am trying to split a file with 334,386 lines into seperate files of 50,000 each. This is the code i am running: Dim intFragmentRawIndex As Integer Dim swRawDataFile As StreamWriter...
11
by: ThunderMusic | last post by:
Hi, I have a windows service that only loads a CSV file and import it's data using SqlBulkCopy in a newly created Sql Server 2005 table using 25000 rows batches. If I build the service in debug...
9
by: Ryan Liu | last post by:
Hi, I use C# wrote an Client/Server application. In production environment, will be 130 clients (Windows XP) connect to a Server (Windows 2000/2003 Server) thought TCP/IP socket in a local 100M...
25
by: news.microsoft.com | last post by:
Hi all, First post here. I'm porting an application I wrote in VB6, over to VB.NET 2005. It could be said I'm really struggling with some (most!) of the syntax of VB.NET 2005, but I'm getting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.