Beispiel #1
0
        public async Task <List <string> > ReadCSVLinesAsync()
        {
            IList <string> csvLines = new List <string>();

            try
            {
                File = await AppFolder.GetFileAsync(FullFileName);

                csvLines = await FileIO.ReadLinesAsync(File);

                return(await Task.FromResult(csvLines.ToList()));
            }
            catch (Exception)
            {
                await AppFolder.CreateFileAsync(FullFileName);

                return(await Task.FromResult(csvLines.ToList()));
            }
        }
Beispiel #2
0
        public async Task SaveCSVLinesAsync(List <string> csvLines)
        {
            File = await AppFolder.GetFileAsync(FullFileName);

            await FileIO.WriteLinesAsync(File, csvLines);
        }