How do I store the file path in a variable?

HI

I want to store the file path in a string variable. How do you do it?

@komi200

Create one String variable and assign file path to it.

From where you are getting file path ?

@komi200,
You can directly assign it to the variable as in the screenshot

String var=Directory.getfiles(filepath)

Thanks
Ashwin.S

@komi200

If you want to store single file path then its string

And if say you want all files in folder use array of string.

Regards,
Aditya