-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringFourthExample.cs
More file actions
28 lines (21 loc) · 941 Bytes
/
StringFourthExample.cs
File metadata and controls
28 lines (21 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace StringExamples
{
internal class StringFourthExample
{
static void Main(string[] args)
{
string firstName = "Rahul";
string secondName = "Bose";
string displayName = $"Welcome!\n {firstName}\t{secondName}";
Console.WriteLine(displayName);
string filePath = "E:\\Folder1\\text1.txt"; //Providing the File Name using the Escaped Sequence
Console.WriteLine("Providing the File Name using the Escaped Sequence\r\n");
Console.WriteLine(File.Exists(filePath));
string filePath2 = @"E:\Folder1\text1.txt";
Console.WriteLine("Providing the File Name using the Verbatim Sequence\r\n");
Console.WriteLine(File.Exists(filePath2));
Console.WriteLine("Using the Double quotes");
Console.WriteLine("We should provide \"double quotes\" in the Line");
}
}
}