![]() ![]() So when I run the current code, when Compare is in scope, output.txt should not be generated. But I did not run this code, and output.txt does not exist in the folder. ![]() I have another code, after execution, it will detect whether there is Output.txt in the folder every hour, and if there is, it will remind and delete the file. Try this - delete the file output.txt, run your script, and tell me if the output file reappears and what is in Russ, It will NOT delete the file and recreate it every time you run your code. FileAppend will create a file if it doesn't exist, or it will add to an existing file. The point I'm trying to make is that you are using FileAppend to write your text file. It is a variable that you have defined in your code. GenerateOutput has nothing to do with version 2. ![]() I already assume you are on version 1 since your code is version 1 and you are posting in the version 1 forum. Thank you for your patience in answering. How can I use other commands instead of generateOutput? Yes, I'm running an earlier version (V1.1.36.02f), so I can't execute the generateOutput command (generateOutput should be V2.0). Somehow the generateOutput flag is being set (or you are running a previous version of your script that does not check the Russ, If, however, you delete your output file, run the script, and it appears again, then something is wrong. If you keep running your script without deleting the output file, and the entire contents of the output file are what you posted, then nothing is being added to the file and nothing is wrong with your script - it is doing exactly what you are telling it to. Are you aware that FileAppend adds to a file if it already exists and creates it if it doesn't. Now, to the final bit of logic where the file is actually written to. Is this the entire contents of your file? If so, than nothing from within your loop was added to it, so your comparison logic is correct. ItemA ItemB ItemC ItemD ItemE ItemF ItemG After execution, you will get an output.txt, the content is below. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |