Skip to content

Instantly share code, notes, and snippets.

@wwiv
Created January 7, 2016 06:11
Show Gist options
  • Save wwiv/c2eb6dec2b3f63d45d2b to your computer and use it in GitHub Desktop.
Save wwiv/c2eb6dec2b3f63d45d2b to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BuildNFO
{
class Program
{
static void Main(string[] args)
{
string s = System.IO.File.ReadAllText(@"Z:\bbs\build.nfo");
string[] lines = s.Split('\n');
foreach (var line in lines)
{
// Console.WriteLine(line);
if (line.Contains("Build:"))
{
string ver = line.Substring(line.IndexOf("Build:") + 6);
Console.WriteLine(ver);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment