Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.39 KB | None | 0 0
  1. can u help me with an issue.. i have a list of words that are placed inside a text file.. the words are single words listed without double quotes line by line. and i have wrote a function to delete the entire line if these words exists. So what my issue is `my input text files` are of two formats one `without double quotes` and one `with double quotes`.
  2.  
  3. `List of words to delete`
  4. [DELETE]
  5. DO NOT INSTALL
  6. do not install
  7. (Place wires)
  8. Notfitted
  9. top
  10. 1206 - CAPACITOR
  11. DNI
  12. dni
  13. +12V
  14. +15V
  15. +24V
  16. +3.3V
  17. +48V
  18. +5V
  19. -12V
  20. -15V
  21. SENSE1
  22. FIELD1
  23. GND1
  24. GND2
  25. GND3
  26. GND4
  27. GND5
  28. GND6
  29.  
  30.  
  31. `first input Text format`...
  32. Designator MAX PN Footprint Center-X(mm) Center-Y(mm) Layer
  33.  
  34. ggA1 100-0009 1206 - CAPACITOR 42.164 114.109 top
  35. C1A1 150-0009 1206 - CAPACITOR 42.164 114.109 bottom
  36. C21 100-0009 1206 - CAPACITOR 42.164 114.109 top
  37. CSA1 104-0009 1206 - CAPACITOR 42.164 114.109 bottom
  38. CSA1 107-0009 1206 - CAPACITOR 42.164 114.109 bottom
  39. MAA1 109-0009 1206 - CAPACITOR 42.164 114.109 bottom
  40.  
  41. `Secondinput input text format`..
  42. Designator  MAX PN  Footprint   Center-X(mm)    Center-Y(mm)    Layer
  43.  
  44. "C10"   "100-0009"  "1206 - CAPACITOR"  "122.492"   "69.469"    "bottom"
  45. "C100"  "100-0009"  "1206 - CAPACITOR"  "264.211"   "12.814"    "top"
  46. "C102"  "100-0009"  "1206 - CAPACITOR"  "251.346"   "11.201"    "bottom"
  47. "C105"  "100-0009"  "1206 - CAPACITOR"  "302.133"   "29.527"    "bottom"
  48. "C105A" "100-0009"  "s" "306.197"   "29.909"    "bottom"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement