If the user chooses a valid file name, the return value of
openfileis a character row vector containing the name of the file. Otherwise, the return value is an empty character row vector; that is, it has column dimension equal to 0.
O-Matrix will display a system browser dialog. If you choose a file in the dialog, O-Matrix will print the name of the file in the command window.
caption = "Example: openfile"
name = "autoexec.oms"
description = "O-Matrix Files"
extension = "*.oms"
openfile(caption, name, description, extension)