12/16/2023 0 Comments Program to find file size in c![]() ![]() Here’s a video that looks at loading datasets in Python. These methods are useful when you have already opened the file to read the data. Size = file_object.tell() # Get the cursor position, which is the size of the file Here is some sample code that shows the two methods in use on a file object: def get_file_size(file_object):įile_ek(0, 2) # Move the cursor to the end of the file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |