|
|
От: |
VladD2
|
www.nemerle.org |
| Дата: | 18.09.06 02:09 | ||
| Оценка: | 6 (1) -1 | ||
using System.Console;
using Nemerle.Utility;
using System.IO;
def strToFind = "partition";
def strs = File.ReadAllLines(@"C:\boot.ini");
WriteLine($"Lines in file: $(strs.Length)");
WriteLine();
WriteLine($"Lines contained '$strToFind':");
WriteLine($[ x | x in strs, x.Contains(strToFind) ]);
ReadLine();