basic open / write / close