Subash Chandran posted: "file.truncate(file.tell - 1) #explanation - the function truncate will resize the file to the #full size - 1 and that means it will remove the last character #if you need to do that while you are reading/writing somewhere using #seek() you can use this f"
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.