473,327 Members | 1,979 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,327 software developers and data experts.

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 4631
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.