//function that writes the user and playlist to a binary file
        private void WriteProfileToFile(string profileName)
        {
            string   filename = profileName + ".bin";
            BinaryIO io       = new BinaryIO();

            io.BinaryWrite(filename, playList, profiles.GetUser(profileName));
        }