Solved

Instead of EOF!

Posted on 2000-04-09
12
329 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
  • 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
 
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 5 total points
ID: 2700061
yes it can.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 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

20 Experts available now in Live!

Get 1:1 Help Now