I am trying to design a fortran77 program that creates 17 directories in unix then does various other things, but creating the directories has been the biggest problem so that's all i'd like to focus on at the moment.
For example:
do i=1,17
cmd="mkdir" ,i
call system(cmd)
call chdir("i")
end do
From that portion of code I want the command "mkdir" to create 17 separate directories in unix named from 1-17, but when I try to compile the program I get an error that says "invalid radix specifier" focusing on the second line of code I listed.
Another error is also produced focusing on the same line of code. "Concatenation operator at (^) must operate on two sub expressions of character type, but the sub expression at (^) is not of character type.
Is there a way to convert integers to strings?
All help would be appreciated thanks.