Write a Python program to get the size of a file.
1 2 3 4 |
import os file_size = os.path.getsize("abc.txt") print("\nThe size of abc.txt is :",file_size,"Bytes") print() |
1 2 3 4 |
import os file_size = os.path.getsize("abc.txt") print("\nThe size of abc.txt is :",file_size,"Bytes") print() |