To get an exact match, including all angle scales, use
System.IO.Directory.GetFiles(myPath, myPattern)
You may need to create some temporary files that form your target lines.
In other words, I think you should keep your templates dry until you come across a file.
source share