How to handle file name in System.IO classes in a cross-platform manner to make it work on Windows and Linux?
System.IO
For example, I write this code that works
You can simply use slashes. Relative paths will work identically, and absolute paths can only be relative to the root of the main drive (as absolute paths starting with "c:" are not portable)