Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6758199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:45:08+00:00 2026-05-26T13:45:08+00:00

Set File_Object = CreateObject(Scripting.FileSystemObject) Set File_Xml = File_Object.OpenTextFile(Str_Xml_File) a = File_Xml.readline I wanted to

  • 0
Set File_Object = CreateObject("Scripting.FileSystemObject")
Set File_Xml = File_Object.OpenTextFile(Str_Xml_File)
a = File_Xml.readline

I wanted to read each line till the end of file.I tried it like these

while EOF() 'says argument not optional 
while EOF(File_Xml) ' says that Type mismatch it must be an integer

what is the argument to the EOF ? Please tell me how to read the contents of file using the condition EOF in Vba. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:45:09+00:00Added an answer on May 26, 2026 at 1:45 pm

    File_Xml is a TextStream object. You can use the AtEndOfStream property to test if you’ve met the end of the file, e.g. File_Xml.AtEndOfStream.

    The EOF comes from the days when you only dealt with ‘real’ files, and you had a limited number of file handles per process. It takes as its argument a file handle id. This is still true today, but we also have streams to work with.

    The TextStream is a stream, which is higher abstraction than a ‘file’. A stream might be a file, or a network connection, or anything that conforms to the interface. As such I don’t believe it gets a real file handle id, and therefore the EOF function isn’t relevant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If a file is set to read only mode, how do I change it
How can I set the flag FILE_FLAG_BACKUP_SEMANTICS for an fstream object? You can set
I would like to set up a proxy object in the application NIB file.
Can someone tell me how to set file permissions in Delphi 2006? I am
Is it possible to set welcome-file tag from standard web.xml file by servlet 3.0
I have a very simple .htaccess file set up to redirect a 404 to
I have a variable define as: set filePath=.\file.txt I'm writing a windows batch file.
Currently I use Registry Settings within the Setup Project to set the file associations
in web.xml i set my welcome file to a jsp within web.xml <welcome-file>WEB-INF/index.jsp</welcome-file> inside
I'm getting an object required error on line 54, the last line, when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.