Solved

what is eof

Posted on 2009-07-09
2
383 Views
Last Modified: 2013-12-20
My question is what does 'EOF' represent.
Explicitly: Are you on the last record or beyond the last record ?

If I open a text file and read until EOF, I know that I have read all chrs/ or lines of the file.
If I try to read one more character or line, vb will throw an error.

But, If I am reading a db table, and I read records until EOF, am I beyond the last record or on it.
If I attempt to read another record, will I get an error or the last record.

I even saw one suggestion on-line that suggested it was different for Client side vs. Server side cursors ?
0
Comment
Question by:sidwelle
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 24815995
>>My question is what does 'EOF' represent.

The simple answer is "End Of File" but you already know that. Historically (I remember those from my old mainframe days), it was a real character in a file (just like the End Of Line) and processes were reading the file until they reach that characters. This expression as persisted even if in many cases the character does not exist anymore.
 
>>Explicitly: Are you on the last record or beyond the last record ?

You are past the last record.


0
 

Author Closing Comment

by:sidwelle
ID: 31601659
Thanks for the imput.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

759 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