clear "endfile" flag?

N

niv

Guest
I have a TBench that reads a file in a loop:

i.e. while not endfile(my_file)

....
....

However, later in the TBench, I need to read the file again, but it obviously see that the file has reached the end.

How do I clear the endfile status please?

Regards, Niv.
 
On Friday, 3 October 2014 13:44:05 UTC+1, niv wrote:
I have a TBench that reads a file in a loop:



i.e. while not endfile(my_file)



...

...



However, later in the TBench, I need to read the file again, but it obviously see that the file has reached the end.



How do I clear the endfile status please?



Regards, Niv.

Is it as simple as:

endfile(my_file) <= FALSE; ???

Regards, Niv.
 

Welcome to EDABoard.com

Sponsor

Back
Top