choose a file from a directory an returns me the filename, so I can then read in the contents of this file
getContent[] := Module[{fileName, content = {}},
fileName = SystemDialogInput["FileOpen"];
If[fileName =!= $Canceled, content = Import[fileName]];
content
]
called as
content = getContent[]