i think you need to change "D://out.text" to "D:/out.txt"
or if on windows (ofcourse) "D:\\out.txt"