added new file write method for online players list