.Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ?
.Net Fast File I/O options ? .Net Fast File I/O options ?
.Net Fast File I/O options ?
Go Back  Xtreme Visual Basic Talk > > > .Net Fast File I/O options ?


Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2011, 02:42 AM
skyfox's Avatar
skyfox skyfox is offline
Centurion
 
Join Date: Feb 2005
Location: InsideACircularReference
Posts: 190
Default .Net Fast File I/O options ?


Just wondering if in the net (VB) world only option for file I/O is the Stream reader/writer. In the VB 6 world we had the slow FSO and we had the native file I/O.

As far as speed, mostly concerned with writing few lines of data to a file each second, which may continue 24/7 but each day would have a new file. What are the options available in the net world (that is applicable to VB .net 2003) that can give me the best speed performance?

Thanks all
__________________
SkyFox
Tinker of All, Master of NONE!
"To B or Not To VB? That's the Question"
Reply With Quote
  #2  
Old 03-22-2011, 08:40 AM
AtmaWeapon's Avatar
AtmaWeapon.Net Fast File I/O options ? AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

The classes available in System.IO are the file I/O classes available to .NET. Note that StreamReader and StreamWriter are just one pair of many classes available for file I/O.

You could certainly use P\Invoke to write your own classes using the Windows API methods, but the System.IO classes already do this so it is questionable if this would make an impact on performance.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #3  
Old 03-30-2011, 08:49 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

For specific scenarios, it is likely that you could use the API's more efficiently than the framework does.

In this case I just dont think it matters tho.. a few lines of data per second? You might want to cache and write the data in 60-second chunks to improve the I/O efficiency of other processes.. but other than that..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
.Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ? .Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ? .Net Fast File I/O options ?
.Net Fast File I/O options ?
.Net Fast File I/O options ?
 
.Net Fast File I/O options ?
.Net Fast File I/O options ?
 
-->