title: Why is this invalid file path with // working?
body: <p>I have this function in a certain Class1:</p>
  
  <pre><code>    public void function1(String path){
    this.excel = new Application();
    this.wbooks = excel.Workbooks;
    this.wb = wbooks.Open(path);
    String rootPath = wb.Path+"//..//..//";
    String nPath = String.Format("{0}//Loads//{1}//{2}",rootPath,name1,name2);
    String outputDir = String.Format("{0}//Input//{1}//{2}", rootPath, name1, name2);
    String erroDir = String.Format("{0}//Erro//{1}//{2}", rootPath, name1, name2);
    for(int i = 0; i &lt; size; i++){
       String[] array2 = File.ReadAllLines(String.Format("{0}//{1}_{2}.txt", nPath, name1, i.ToString()));
       //code
       Directory.CreateDirectory(erroDir);
       File.WriteAllLines(String.Format("{0}//erro_{1}_{2}.txt", erroDir, name1, i.ToString()), array);
       Directory.CreateDirectory(outputDir);
       File.WriteAllLines(String.Format("{0}//output_{1}.txt", outputDir, name2), array);
    }
  }
  </code></pre>
  
  <p>This function from a class and is being called like this in the main function:</p>
  
  <pre><code>String path = "C:\\Users\\myUsername\\Desktop\\myFolder\\";
  Class1 temp = new Class1();
  temp.function1(path);
  </code></pre>
  
  <p>Why are the paths made in the function working?Shouldnt path be made "\\" instead of "//".</p>