Solved

Use ADO to read Random Files

Posted on 2014-01-27
2
220 Views
Last Modified: 2014-01-28
I know that ADO could be used to read text files (comma delimited or tabbed)

My question is can ADO be used to read Random Files (saved in text form) containing User Defined Types

Usually it is read as follows :

   Dim rec as RandomRecord

   Open "C:\RandomFile.txt For Random As #1 Len = Len(Rec)
   
   nRecords = LOF(1) / Len(Rec)
   
   For i = 1 To nRecords
   
      Get #1, i, Rec

   Next i

Thank you
0
Comment
Question by:rohaya
2 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39814329
0
 

Author Closing Comment

by:rohaya
ID: 39814747
Excellent link. Addresses my question. Thanks.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now