Saafia NM

Saafia NM

  • NA
  • 52
  • 3.9k

Append one path to another path while uploading a file

Apr 5 2016 2:58 AM
I have to append one path to another path . That is , i created folder names and stored it into a string.
The folder names are random numbers from 1 to 26.  I have a folder 'Encrypt' in my Project. Within that folder, 1 to 26 folders were created.
 
Random rand=new Random();
int folder = rand.Next(1,27);
string path = @"\Encrypt\";
 
while uploading a file, the path should be the folder name within the Encrypt folder . How to append the (int folder) into (string path)? Help me please....
 

Answers (4)