public static void GetAuthorFileNamesFromAuthorsList() { var authorNames = FileInputClass.ReadTextDataFromFile(BookListPropertiesClass.PathToAuthorsNamesListFile); AddAuthorsListToCollection(authorNames); }
public bool AddRawDataReadFromFileToRawDataCollection([NotNull] string filePath) { if (string.IsNullOrEmpty(filePath)) { return(false); } if (!File.Exists(filePath)) { return(false); } var data = FileInputClass.ReadTextDataFromFile(filePath); return(FillRawDataCollection(data)); }
public static bool AddRawDataReadFromFileToRawDataCollection([NotNull] string filePath) { if (!ValidationClass.ValidateStringValueNotEmptyNotWhiteSpace(filePath)) { return(false); } if (!ValidationClass.ValidateFileExits(filePath)) { return(false); } var data = FileInputClass.ReadTextDataFromFile(filePath); return(FillRawDataCollection(data)); }