Write the ids previously mentioned to a file called result.txt.
