- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
how to get file names or file path
file1 = pick file();
file_name = ...
suff = word(-1, file_name, ".")
if(suff == "txt" | file_name == “csv”,
open(file1), ....
);
how can i get file_name when I pick up a file?
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to get file names or file path
Variable "file1" contains the path.
The filename can easily be extracted with
file_name = Word( -1, file1, "/" );
Jim
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to get file names or file path
Variable "file1" contains the path.
The filename can easily be extracted with
file_name = Word( -1, file1, "/" );
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to get file names or file path
I am feeling so exited to have your reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to get file names or file path
If I like to get the path of file1, what shall I do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to get file names or file path
I think this is what you really want
file1 = pick file();
file_name = Word( -1, file1, "/" );
suff = word(-1, file_name, ".")
if(suff == "txt" | stuff == “csv”,
open(file1);
);
Jim