I'm using the system("pathping xxx.xxx.xxx > c:\i.txt")
function to leave the program running pathping
tests and saving the result to a file to analyze later.
Basically I wanted to play this function inside an infinite loop to always be analyzing but could not find a way to instead of i.txt
use the variable i
.
#include <stdio.h>
main(){
int i=0;
while(i>=0){
system("pathping xxx.xxx.xxx.xxx > i.txt");
i++;
}
return 0;
}