07-23-2020 11:30 AM - edited 07-23-2020 11:31 AM
@Aladdin2020 wrote:
Well, that Open/Create/Replace File function is totally mis-wired. There is no need to wire up the "prompt" input. And that function does not need a double input for anything. And your enum came from where? Remove the Feedback Node and any wires connected to it, the enum, and the prompt input. Right-click on the "operation" input and choose to create a constant. I set it to Replace Or Create. You also need to supply a path.
07-23-2020 12:22 PM
Thank you so much for explain the process here! This is crazy! I still don’t get any thing on text file! empty! the program would run but still won't write anything to text document!
not sure what is missing!
07-23-2020 12:36 PM
Your file path looks like a subdirectory that is on your PC, using the / folder format of a RIO.
Are you SURE you picked a folder that exists on the RIO? In other words, does your device have a folder at the path /C/User/Aladdin's PC/Desktop?
(I kind of doubt it since it would be unlikely for a RIO device to have need for a desktop folder.)
If the folder doesn't exist, you may need to add code that will create any of the missing folders in the hierarchy.