that's exactly how I did it but the file is still empty
Try with simple command lines and different/simple path to the text file.
If my exact command line didn't work, maybe an antivirus or sandboxing prevents vanitysearch from accessing the results.txt you want (and you may or may not find a copy somewhere else).