Note that !/0 cuts through ,/2.
Success: [eclipse]: (F="file1", writeln(F)). file1 F = "file1" yes. [eclipse]: call((write(a), write(b))). ab yes.