Is there a way to read a .txt file memory size? (Example: .txt file is 1.2 MB)
Hi,
Its very simple try this:
string filePath = "C:\\file.txt"; // it may audio,video file
FileInfo info = new FileInfo(filePath);
Debug.Log(info.Length+" Bytes");
Is there a way to read a .txt file memory size? (Example: .txt file is 1.2 MB)
Hi,
Its very simple try this:
string filePath = "C:\\file.txt"; // it may audio,video file
FileInfo info = new FileInfo(filePath);
Debug.Log(info.Length+" Bytes");