You are on page 1of 10

Coursework 7:

End-of-File Maker
Flowcharts
BY: MARK B. BAZAR
What is end of file
maker?
End-of-file maker (EOF)

 EOF means end of file. It's a sign that the end of a file is
reached, and that there will be no data anymore. EOF is a
code placed by a computer after a file's last byte of data.
EOF marks are helpful in data transmission and storage.
 Files are stored in blocks, and the end marker helps the
computer know it has allocated enough space to store the
file. This is done to avoid ending up getting a runtime error.
 A loop is a sequence of instructions that is continually
repeated until a certain condition is reached. The program
repeats the same instructions over and over. It is used when
a set of actions is to be performed repeatedly. ("Looping,"
n.d.).
End-of-file maker (EOF)

 When a file is saved, there is a nonprintable character,


end of file marker, placed at the end of the file to signal
the location of the bottom of the file. This nonprintable
character is a character that is similar to a space. A space
is something that exists and has value to the computer
system except you cannot see the space on the screen. If
you are using a language that supports automatic end of
file processing, when the end of file is reached during
processing, the computer system will automatically stop
processing and exit the loop.
Controlled Loop
using a (EOF)
What is Controlled Loop using a (EOF)

 This type of loop is usually used when reading from a


file. The loop terminates when the end of the file is
detected. This can easily be determined by checking the
EOF function after each read from the file. This function
will return true when the end-of-file is reached.
This is a loop using
(EOF)
Controlled Loop
using End of File
Marker
MY OWN
EXAMPLE
FOR YOU
GUYS!
BEGIN This is a
loop using
READ SONG
NAME & (EOF)
ARTIST
SONG ARTIST

• THE PAST • Jed Madela


• EXCHANGE OF • David Slater

Y
HEARTS
• TO GOOD AT • Sam Smith
GOODBYES
EOF? END • EVERYTIME • Britney Spears
• NO ONE • Alicia keys
• WAY BACK INTO • Hugh Grant/Haley
LOVE Benett

N
• THERE YOU'LL BE • Faith hill
• BECAUSE YOU LOVED • Celine Dion
ME
• 12:51 • Krissy and Ericka
WRITE SONG • I BELIEVE • Jimmy Bondoc
NAME &
ARTIST

You might also like