open file on diff platform