Basic file opening functionality