Is random access possible with My.Computer.FileSystem?

I have a dotNet 2003 VB program that uses random access files, as in:

FileOpen(FNum, FName, OpenMode.Random, OpenAccess.Read, OpenShare.Shared, Len(FRec))

After converting this program to VS dotNet 2005, I see several notes in the MSDN documentation and in the conversion log that say that My.Computer.FileSystem offers better performance than FileOpen, but I don't see a random access example, and I don't see My.Computer.FileSystem methods that correspond to all the older functions.

Is random access possible with My.Computer.FileSystem? If so, will someone share an example that reads and writes to a random access file with My.Computer.FileSystem?

TIA

[705 byte] By [ScotchTape] at [2008-2-19]
# 1

I don't see any methofs to do that. I only see ReadAllBytes which is not random access.

You can however do randomio the System.IO class.

In your object browser, you may really be interested in the Microsoft.VisualBasic.FileSystem which has very similar functionality to VB6 random access IO.

ReneeC at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...