outFileName="F:folderfolderfilename.txt" outFile=open(outFileName, "w") outFile.write("""Hello my name is ABCD""") outFile.close()