Guest User

Untitled

a guest
Jun 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. public static void parseChildren() {
  2. string line;
  3.  
  4. while ((line = reader.ReadLine()) != null) {
  5. lineNumber++;
  6.  
  7. if (line.Length < 8) {
  8. continue;
  9. }
  10.  
  11. string tempLine = line.Substring(7);
  12. if (line.Length == 80) {
  13. tempLine = tempLine.Remove(tempLine.Length - 8);
  14. }
  15.  
  16. string[] splitted = tempLine.Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
  17. Queue<String> strReader = new Queue<string>(splitted);
  18.  
  19. while (strReader.Count > 0) {
  20. string word = strReader.Dequeue();
  21.  
  22. switch (word) {
  23. case "01":
  24. {
  25. break;
  26. }
  27. case "05": {
  28. break;
  29. }
  30. case "07": {
  31. break;
  32. }
  33. case "10": {
  34. break;
  35. }
  36. case "15": {
  37. break;
  38. }
  39. case "88": {
  40. break;
  41. }
  42. }
  43. }
  44. }
  45. }
Add Comment
Please, Sign In to add comment