Updating a file rondom access

Rated 3.91/5 based on 878 customer reviews

So the problem is that you have an else without an if.

I fixed the bracket problem and was getting garbage values when the program compiled.

A discussion of sequential file I/O operation begins on page 45 of your MS Basic manual (ver.

Before moving forward or backward within a file, one important factor is the current position inside the file.

Therefore, we must understand that there is a concept of file position (or position inside a file) i.e. While reading from and writing into a file, we should be very clear from where (which location inside the file) our process of reading or writing will start.

Likewise, we intend to move in the backward direction by providing a negative number.

By writing: The file pointer will move 10 bytes in the backward direction from the current position.

Leave a Reply