?
Solved

Instead of EOF!

Posted on 2000-04-09
12
Medium Priority
?
342 Views
Last Modified: 2008-03-10
Is there an other way to test the end of a file? Is EOF only for ASCII files? I know in C there's an "feof" can test the end of a binary file, what's VB's?
0
Comment
Question by:prefix
[X]
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
  • 4
  • 4
  • 2
  • +2
12 Comments
 
LVL 1

Expert Comment

by:guyss
ID: 2697650
there is an EOF(file-number) function.
0
 
LVL 2

Expert Comment

by:danlevans
ID: 2697653
EOF(1) True means end of data has been reached in ascii or binary files.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2697660
Or.. after opening the file.. you can test the for the length of the file by using the LOF(file number) filenumber. While processing the file you can use the Seek(file number) function to either read the current file position (when used on the right side of an equation)..or to set it to another place (when used on the left side of an equation).

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:prefix
ID: 2700041
Hello:
  Is EOF(#filenumber) also be able to test a binary file?
0
 
LVL 1

Author Comment

by:prefix
ID: 2700049
And run commonly?
0
 
LVL 1

Accepted Solution

by:
guyss earned 10 total points
ID: 2700061
yes it can.
0
 
LVL 1

Author Comment

by:prefix
ID: 2700267
Thanks you.
0
 
LVL 1

Expert Comment

by:guyss
ID: 2700307
sure,
you could have awarded some points though...
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2701024
Guyss:
Zero points and a "C" grade?.. You really have been had.. LOL.

I agree, a modicum of points would have been nice. Post a question in Customer Service.. to bring their attention to this question.. <smile>.

http://www.experts-exchange.com/Customer_Service/Experts_Exchange/

0
 
LVL 3

Expert Comment

by:darinw
ID: 2706630
Hello all,

Well.. I'd like to remind the Experts that the grading history is available for everyone.

Last 5 Grade(s) Given:  
C B B C A  

....And remind prefix that you should try to be fair when you grade your questions. The Experts are here helping  YOU. Don't make it hard to get help by not being fair with grades or posting very low point or zero point questions.

darinw
Customer Service
0
 
LVL 1

Author Comment

by:prefix
ID: 2707585
EveryOne:
  This question is my first and the lowest point I posted. I havn't post such questions like this before and didn't know the points will be so few. Hope you won't mind.
0
 
LVL 1

Expert Comment

by:guyss
ID: 2707610
no matter, it isn't very important.
i like answering questions...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

770 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