title: Split text file Path to (x) number of files with VB.NET
body: <p>I searched everywhere on stackoverflow.com but still not have a solution:</p>
  
  <p>My code is very simple :</p>
  
  <pre><code>'Get Full Path of File
  Dim elements As String = Path.GetTempPath() &amp; "file.txt"
  'Create A new folder for outputs if not exist
  If (Not System.IO.Directory.Exists(Path.GetTempPath() &amp; "folder")) Then
          System.IO.Directory.CreateDirectory(Path.GetTempPath() &amp; "folder")
  End If
  </code></pre>
  
  <p>I want divide the file.txt with contents to (x) number of files inside the new folder</p>
  
  <p>example : </p>
  
  <p>if x = 3</p>
  
  <p>the output files will be created automatically:</p>
  
  <p>/folder/file_1.txt</p>
  
  <p>/folder/file_2.txt</p>
  
  <p>/folder/file_3.txt</p>