Errors when reading data using UEXTERNALDB

Hi,

 

I try to read a txt file in UEXTERNALDB using the following commands:

 

OPEN(111, FILE=STAFIL, STATUS='UNKNOWN')

READ(111,*) UPDSTA

CLOSE(111)

 

What is stored in the file is just a string. However, I sometimes encounter the error saying that:

forrtl: severe (24): end-of-file during read, unit 111,...

 

This error will not occur each time but can disrupt the simulation sometimes. I am wondering why I have this issue. Thanks!