open file in note from command line linux

C++
gedit filename
Source

Also in C++: