Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

Instead of EOF!

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
prefix
Asked:
prefix
  • 4
  • 4
  • 2
  • +2
1 Solution
 
guyssCommented:
there is an EOF(file-number) function.
0
 
danlevansCommented:
EOF(1) True means end of data has been reached in ascii or binary files.
0
 
wsh2Commented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
prefixAuthor Commented:
Hello:
  Is EOF(#filenumber) also be able to test a binary file?
0
 
prefixAuthor Commented:
And run commonly?
0
 
guyssCommented:
yes it can.
0
 
prefixAuthor Commented:
Thanks you.
0
 
guyssCommented:
sure,
you could have awarded some points though...
0
 
wsh2Commented:
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
 
darinwCommented:
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
 
prefixAuthor Commented:
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
 
guyssCommented:
no matter, it isn't very important.
i like answering questions...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now