So, I am attempting to create multiple files with different names. I am trying to change one number in the file name like this, but it won't let me use "{0}" to insert a string.
String value = "1";
foreach (var message in reddit.User.PrivateMessages) {
var pm = message as PrivateMessage;
File.WriteAllText(
(@"C:\Users\MyName\Desktop\Programming\test{0}.txt", value),
pm.Body);
}
The main point is I want to be able to create multiple files with a foreach loop. I can handle the int parsing seperately.