try open and write multiple files