Exemple #1
0
        public void ReadFile()
        {
            StreamReader ac      = new StreamReader(@"\0.txt", Encoding.Default);
            string       content = ac.ReadToEnd();

            string[] lines = content.Split('\n');
            for (int i = 0; i < lines.Length; i++)
            {
                string[] words = lines[i].Trim().Split('\t');
                if (words.Length < 5)
                {
                    continue;
                }
                ID.Add(words[0]);
                PW.Add(words[1]);
                name.Add(words[2]);
                IDcard.Add(words[3]);
                Money.Add(words[4]);
            }
        }