Mohammed Hewedy·Follow1 min read·Aug 14, 2019--ShareYou need to close the files you open after you check for error using:defer recordFile.Close()