How to check if a txt/excel file exist?

How to check if a txt/excel file exist?

manuel_s4
Not applicable
93 Views
4 Replies
Message 1 of 5

How to check if a txt/excel file exist?

manuel_s4
Not applicable

[ FlexSim 19.1.0 ]

I'm importing some txt/excel files but I want to know if they exist otherwise not try to import them.

Thanks.

0 Likes
Replies (4)
Message 2 of 5

philboboADSK
Autodesk
Autodesk
Accepted solution

Use the fileexists() command.



Phil BoBo
Sr. Manager, Software Development
Message 3 of 5

jeff_nordgren
Not applicable

@Manuel Sinco,

Did the answer by @phil.bobo below, answer the question that you had? If so, please click on the "Accept" link and the end of the answer. If not, please explain to us in a little more detail what it is that you are wanting to do.

Thanks.

0 Likes
Message 4 of 5

manuel_s4
Not applicable

Thanks Phil, that's what I wanted, actually I used it in the past and forgot it's existence.

Thank you.

0 Likes
Message 5 of 5

manuel_s4
Not applicable

I'm sorry for the delay Jeff, it worked properly. Thank you.

0 Likes