Connecting Tech Pros Worldwide Forums | Help | Site Map

HOW TO: Speed up FileGet

M. Angelo
Guest
 
Posts: n/a
#1: Nov 20 '05
Is there a way to speed up FileGet and FilePut?
Or should I use another method?

Cor
Guest
 
Posts: n/a
#2: Nov 20 '05

re: HOW TO: Speed up FileGet


Hi Angelo,

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

Cor


Cor
Guest
 
Posts: n/a
#3: Nov 20 '05

re: HOW TO: Speed up FileGet


Hi Angelo,

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

Cor


Tom Shelton
Guest
 
Posts: n/a
#4: Nov 20 '05

re: HOW TO: Speed up FileGet


On 2004-04-04, M. Angelo <Sorry@No.One> wrote:[color=blue]
> Is there a way to speed up FileGet and FilePut?
> Or should I use another method?
>[/color]

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.
Tom Shelton
Guest
 
Posts: n/a
#5: Nov 20 '05

re: HOW TO: Speed up FileGet


On 2004-04-04, M. Angelo <Sorry@No.One> wrote:[color=blue]
> Is there a way to speed up FileGet and FilePut?
> Or should I use another method?
>[/color]

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.
M. Angelo
Guest
 
Posts: n/a
#6: Nov 20 '05

re: HOW TO: Speed up FileGet


Thanks
It's about 4 times faster :)

Tom Shelton wrote:
[color=blue]
> On 2004-04-04, M. Angelo <Sorry@No.One> wrote:
>[color=green]
>>Is there a way to speed up FileGet and FilePut?
>>Or should I use another method?
>>[/color]
>
>
> 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.
>[/color]

M. Angelo
Guest
 
Posts: n/a
#7: Nov 20 '05

re: HOW TO: Speed up FileGet


Thanks
It's about 4 times faster :)

Tom Shelton wrote:
[color=blue]
> On 2004-04-04, M. Angelo <Sorry@No.One> wrote:
>[color=green]
>>Is there a way to speed up FileGet and FilePut?
>>Or should I use another method?
>>[/color]
>
>
> 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.
>[/color]

Cor
Guest
 
Posts: n/a
#8: Nov 20 '05

re: HOW TO: Speed up FileGet


Hi Angelo,

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

(I never used the fileGet however)

Cor


Cor
Guest
 
Posts: n/a
#9: Nov 20 '05

re: HOW TO: Speed up FileGet


Hi Angelo,

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

(I never used the fileGet however)

Cor


Closed Thread


Similar Visual Basic .NET bytes