File paths

The file paths on Windows OS use a backslash to separate the directories and their subdirectories. For instance, C:MalaeJavaGuru refers to the eJavaGuru subdirectory in the Mala directory in the C: drive. Here's how you can store this path by using a traditional string literal:

String filePath = "C:\Mala\eJavaGuru\ocp11.txt";

With raw string literals, you can store the same file path as follows (changes are highlighted in bold):

String rawFilePath = `C:MalaeJavaGuruocp11.txt`; 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.71.21