Blank Lines At Start Of New File [SOLVED]
Posted: Tue Jul 11, 2023 6:47 pm
I've hit a road block with a very simple piece of code. In the code below In the created file the first line has 1 space & the 2nd line has 2 spaces, while all the other lines are written correctly. If this is normal how can I prevent the seeming blank lines being created, if not what am I doing wrong?
Code: Select all
InDir.s = ; Choose your own directory
OutFile.s = ; Choose your own path & file name
CreateFile(1, OutFile)
If ExamineDirectory(0, InDir, "*.*")
While NextDirectoryEntry(0)
WriteStringN(1, DirectoryEntryName(0))
Wend
FinishDirectory(0)
EndIf
CloseFile(1)