Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void parseChildren() {
- string line;
- while ((line = reader.ReadLine()) != null) {
- lineNumber++;
- if (line.Length < 8) {
- continue;
- }
- string tempLine = line.Substring(7);
- if (line.Length == 80) {
- tempLine = tempLine.Remove(tempLine.Length - 8);
- }
- string[] splitted = tempLine.Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
- Queue<String> strReader = new Queue<string>(splitted);
- while (strReader.Count > 0) {
- string word = strReader.Dequeue();
- switch (word) {
- case "01":
- {
- break;
- }
- case "05": {
- break;
- }
- case "07": {
- break;
- }
- case "10": {
- break;
- }
- case "15": {
- break;
- }
- case "88": {
- break;
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment