I need some help...

if that so just teach me how to do for example writing a C code how to open a simple txt file in windows and i try to change it to Ubuntu if u dont mind...