in reply to Wildcards - open a file with one unknown digital character
open expects a file name/path, not a wildcard or regular expression (think of it this way: What should it do in case more than one file would match? Open several files to one handle?).
Use glob to expand a wildcard expression (the single unknown digit would be [0-9]), and then open one of the matching file names.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wildcards - open a file with one unknown digital character
by mypatek (Initiate) on Jan 11, 2010 at 20:05 UTC |