open_file_content

Opens widget for selecting file and loads file content asynchronously. You should provide two argument callback function eg. fn(arg1,arg2) as second argument of this function. When your callback is called first argument in it will be the file name and second will be file content as vector.

Arguments

  1. String file filter. Example 'Image files (*.jpg *.png)' or 'Text File (*.txt)'. You can enter empty string too.
  2. Two argument callback function eg. fn(arg1,arg2) defined elsewhere in the source file

Output

Boolean