Simple transactional file operations