Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Use ADO to read Random Files

Posted on 2014-01-27
2
223 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 50

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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: …

790 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