This short code snipped helps to aggregate all project sources in one file to read from reader on a trip
static void Main(string [] args)
{
string dir = args[0];
string outputPath = args[1];
string pattern = (args.Length > 2) ? args[2] : "*";
StringBuilder b = new StringBuilder();
foreach (string file in Directory.GetFiles(dir, pattern, SearchOption.AllDirectories))
{
b.Append(file);
b.Append(Environment.NewLine);
b.Append(File.ReadAllText(file));
b.Append(Environment.NewLine);
}
File.WriteAllText(outputPath, b.ToString());
}
Subscribe to:
Post Comments (Atom)
debug magazine archive
71 jounals still available on issuu with great story of netlabels time. debug_mag Publisher Publications - Issuu
-
For a cheap, obsolete environment I got a problem, fyne ui does not see my opengl. I remembered, the same problem appears for WFP, it also ...
-
This iportant option in Visual studio I started to use from 2004, in JetBrains Rider 'Always Select Opened File' option is located ...
-
71 jounals still available on issuu with great story of netlabels time. debug_mag Publisher Publications - Issuu
No comments:
Post a Comment