Jun 27, 2025 12:44 AM
GuyLuomo
564
7
4
sensible_chuckle
funny
robots
mildly_amusing
robot
Foxcross
Is the @ needed, or am I mixing my code up
pm1001
It means that the \ characters should not be treated specially. Otherwise they would have to be \\
I have no idea... I just steal the memes & share 'em. I know nothing about coding, but I had perplexity.ai take a look & here's what it said:This is code for deleting a file in C#. Here’s a breakdown:<br>csharpusing System.IO;File.Delete(@"C:\Path\To\filename.txt"">a>me.txt");Explanation:using System.IO;This imports the System.IO namespace, which contains the File class.File.Delete(path);This deletes the file at the specified path. If the file does not exist, no exception is thrown.
Foxcross
Is the @ needed, or am I mixing my code up
pm1001
It means that the \ characters should not be treated specially. Otherwise they would have to be \\
GuyLuomo
I have no idea... I just steal the memes & share 'em. I know nothing about coding, but I had perplexity.ai take a look & here's what it said:
This is code for deleting a file in C#. Here’s a breakdown:
<br>csharp
using System.IO;
File.Delete(@"C:\Path\To\filename.txt"">a>me.txt");
Explanation:
using System.IO;
This imports the System.IO namespace, which contains the File class.
File.Delete(path);
This deletes the file at the specified path. If the file does not exist, no exception is thrown.