You would use WriteFile and check if levdat <> null afterwards to make sure it was opened.
the level and levelsetname should not be needed as locals anymore. That data should be stored on your object as you otherwise will always store levelsetname which is "" and level which is 0 ^^
the level and levelsetname should not be needed as locals anymore. That data should be stored on your object as you otherwise will always store levelsetname which is "" and level which is 0 ^^