Python File Truncate, File truncate () is a very efficient method.