using System;using System.Diagnostics;class MainClass { static void Main(string[] args) { FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt"); Console.WriteLine("File Version: " + info.FileVersion); }}