accomplish the method of get_file _content using stat to get file_size