public static void CreateFileIfNotExists() { if (!FileProvider.IsExists(questionsPath)) { var questions = GetQuestions(); SaveQuestions(questions); } }
public void Init() { QuestionStorage.CreateFileIfNotExists(); if (!FileProvider.IsExists(userResultsPath)) { var results = new List <UserResult>(); SaveResult(results); } }