/// <summary> /// Reads in all a users data /// </summary> /// <param name="path">The file to read from</param> /// <param name="key">Key of the user whos data is being saved</param> /// <returns>A list with all the information read in</returns> private static List <string> readInData(string path, byte key) { byte[] bytes = File.ReadAllBytes(path); string temp = Encrypter.Decrypt(bytes, key); List <string> result = new List <string>(); string [] tempArray = temp.Split('\n'); for (int i = 0; i < tempArray.Length; i++) { if (tempArray[i].Length > 5) { result.Add(tempArray[i]); } } return(result); }