This code will write log file to LogFilePath, and generate output as below. StarRange and EndRange is a variable which value will populate from other function.
Write is a special statement designed to generate machine-readable files that are later consumed with Input.
Write
Input
Use Print to avoid any fiddling with data.
Print
Print #2, "Start postion = "; StarRange Print #2, "End position = "; EndRange