Created
January 7, 2016 06:11
-
-
Save wwiv/c2eb6dec2b3f63d45d2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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