473,466 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HOW TO: Speed up FileGet

Is there a way to speed up FileGet and FilePut?
Or should I use another method?

Nov 20 '05 #1
8 4634
Cor
Hi Angelo,

Is the type of your file a txt file that you are reading and writing?

Cor
Nov 20 '05 #2
Cor
Hi Angelo,

Is the type of your file a txt file that you are reading and writing?

Cor
Nov 20 '05 #3
On 2004-04-04, M. Angelo <So***@No.One> wrote:
Is there a way to speed up FileGet and FilePut?
Or should I use another method?


Don't use them, the FileXXX functions in VB.NET are really slow. Use the
classes from System.IO directly. If your doing binary IO, you'll more
then likely want to look at the System.IO.BinaryReader and System.IO.BinaryWriter.

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Real programmers don't write in BASIC. Actually, no programmers write in
BASIC after reaching puberty.
Nov 20 '05 #4
On 2004-04-04, M. Angelo <So***@No.One> wrote:
Is there a way to speed up FileGet and FilePut?
Or should I use another method?


Don't use them, the FileXXX functions in VB.NET are really slow. Use the
classes from System.IO directly. If your doing binary IO, you'll more
then likely want to look at the System.IO.BinaryReader and System.IO.BinaryWriter.

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Real programmers don't write in BASIC. Actually, no programmers write in
BASIC after reaching puberty.
Nov 20 '05 #5
Thanks
It's about 4 times faster :)

Tom Shelton wrote:
On 2004-04-04, M. Angelo <So***@No.One> wrote:
Is there a way to speed up FileGet and FilePut?
Or should I use another method?

Don't use them, the FileXXX functions in VB.NET are really slow. Use the
classes from System.IO directly. If your doing binary IO, you'll more
then likely want to look at the System.IO.BinaryReader and System.IO.BinaryWriter.


Nov 20 '05 #6
Thanks
It's about 4 times faster :)

Tom Shelton wrote:
On 2004-04-04, M. Angelo <So***@No.One> wrote:
Is there a way to speed up FileGet and FilePut?
Or should I use another method?

Don't use them, the FileXXX functions in VB.NET are really slow. Use the
classes from System.IO directly. If your doing binary IO, you'll more
then likely want to look at the System.IO.BinaryReader and System.IO.BinaryWriter.


Nov 20 '05 #7
Cor
Hi Angelo,

Thanks for your message, because I was curious about that.

(I never used the fileGet however)

Cor
Nov 20 '05 #8
Cor
Hi Angelo,

Thanks for your message, because I was curious about that.

(I never used the fileGet however)

Cor
Nov 20 '05 #9

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

Similar topics

13
by: Yang Li Ke | last post by:
Hi guys, Is it possible to know the internet speed of the visitors with php? Thanx -- Yang
34
by: Jacek Generowicz | last post by:
I have a program in which I make very good use of a memoizer: def memoize(callable): cache = {} def proxy(*args): try: return cache except KeyError: return cache.setdefault(args,...
0
by: TrongAn Hoang | last post by:
Hi, I am converting a VB6 program. I have data from UDT that contained all kinds of VB6 stuff like: variable length strings variants primitive types arrays of UDTs In short, it has all...
0
by: M. Angelo | last post by:
Is there a way to speed up FileGet and FilePut? Or should I use another method?
5
by: vvenk | last post by:
Hello: I am trying to read the contents of a file that be either be binary or text. I would like to know which is better, Filestream or FileGet? Thanks. Venkat
16
by: vvenk | last post by:
Hello: When I use either one to read a Text file, I get the same result. The length of the string that the file's content has been written into is the same. However, if the file is binary,...
0
by: Mike Cooper | last post by:
Hi everyone, I am accessing several binary (PCL) files sequentially using a for loop. For each file I am using the fileget() command to populate the contents of the file into a string. I use...
2
by: Jack Russell | last post by:
I have some code I converted from VB6 to read some binary files. FileGet of an int16 seems to be returning a zero instead of the correct value. Anybody heard of this, know of a work around? ...
4
by: nestle | last post by:
I have DSL with a download speed of 32MB/s and an upload speed of 8MB/s(according to my ISP), and I am using a router. My upload speed is always between 8MB/s and 9MB/s(which is above the max upload...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.