This function returns the number of characters which exist in a random access file. Used in conjunction with the Len(recvar) function, the number of records can be determined using the expression LOF(n)/Len(recvar). The record variable is required to be the same length as the one used to write the data to the file.
List of figures files are produced by the \listoffigures command in LaTeX. After seeing \listoffigures, LaTeX writes figure captions to the LOF file. The next time the document is formatted, LaTeX will insert the LOF file at the point where you issue the \listoffigures command.