public long GetFileLength(string x) { using (FileStream fileStream = new FileStream(x, FileMode.Open, FileAccess.Read)) { return fileStream.Length; } }
No comments:
Post a Comment