I have a array with values and want to append a link to all the values of array assign back the value to same array.
string [] files = null; // will contain array of string values
string[] attachmentFilePath = files;
string[] attachmentFileName = files;
I want to append "http://www.google.com" with every value in the files array and assign it to attachmentFilePath.
I have tried a lot using string.format("google.com",files[index])
for(var i = 0; i<files.count();i++)
{
files[index] = string.format("http://www.google.com",files[index]);
}
tried a lot but some or the other way the code gives error or index out of bounds or null reference exception.
I need the string to appended like 'http://www.google.com/files.value'
Can anyone help me out ?
indexI guess it includes also a loop