Comment detail

条件を満たす行を取り除く (Nested Flatten)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
using System.IO;
using System.Linq;

class Program
{
    static void Main()
    {
        var lines =
            from s in File.ReadAllLines("infile.txt")
            where !s.StartsWith("#")
            select s;

        File.WriteAllLines("outfile.txt", lines.ToArray());
    }
}

Index

Feed

Other

Link

Pathtraq

loading...