Is it possible to have comments or bookmarks in a text file?
so I dont have to open a new text file for each level data.
so I dont have to open a new text file for each level data.
Function Read_Line$(File) ; Read a line from the given file LineFromFile$ = ReadLine$(File) ; Keep reading lines until there's a line found that doesn't start with a semicolon While Left$(LineFromFile$, 1) <> ";" ; Make sure the end of the file hasn't been reached yet If Not Eof(File) ; Read a new line LineFromFile$ = ReadLine$(File) EndIf Wend ; Return the first line without a semicolon Return LineFromFile$ End Function
FloatVar# = Read_Line$(file)
; This datablock containes all data about "Station01" [Station] Name = Station01 FileName = Station01.b3d Texture = Station01.bmp PositionX = -1000 PositionY = 0 PositionZ = -1000 ; This datablock containes all data about "Jumpgate01" [Jumpgate] Name = Sol system -> Wolf 359 FileName = Jumpgate.b3d Texture = Jumpgate.bmp PositionX = 2500 PositionY = 0 PositionZ = 2500 TargetSector = Wolf 359 TargetJumpgate = Wolf 359 -> Sol system