question

Manuel Sinco avatar image
0 Likes"
Manuel Sinco asked Manuel Sinco commented

How to check if a txt/excel file exist?

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

Thanks.

FlexSim 19.1.0
importimporting data from excel file to sourcecheck if existinporting from txt
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeff Nordgren avatar image Jeff Nordgren commented ·

@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 0 ·
Manuel Sinco avatar image Manuel Sinco Jeff Nordgren commented ·

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

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
4 Likes"
Phil BoBo answered Manuel Sinco commented

Use the fileexists() command.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Manuel Sinco avatar image Manuel Sinco commented ·

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

Thank you.

0 Likes 0 ·