LogArray is a 1D array containing 500 elements of type STRING

A procedure, LogEvents, is required to add data from the array to the end of the existing text file LoginFile.txt

Unused array elements are assigned the value "Empty". These can occur anywhere in the array and should not be added to the file.

Write a pseudocode for the procedure LogEvents.