U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Editing Python scripts in TheIde  () 1 Vote
Re: Editing Python scripts in TheIde [message #22135 is a reply to message #22115] Fri, 19 June 2009 13:21 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
skyhawk wrote on Thu, 18 June 2009 07:47

I think theide should just not recreate a file in the same location, but instead open the existing file, truncate it
(http://linux.about.com/library/cmd/blcmdl2_truncate.htm)

and write the new content. That way you prevent having to know about all aspects of the file (attributes, file-rights etc)

Gr,

Jan


Unsafe.

The actual protocol is: Rename current file (add .bak to filename), save file, delete backup.

At any point, either old or new file exists.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Suggestion: cross-platform "U++ package" file type.
Next Topic: Some small issues with TheIDE and DLLs
Goto Forum:
  


Current Time: Sun Apr 26 21:42:07 GMT+2 2026

Total time taken to generate the page: 0.00536 seconds