I'm using Fortran 77 - I'm trying to count the number of characters in a string that the user enters. The user enters a a path for a file to be stored to, and then I need to append some numbers to the end of it.
Example:
user enters: c:/march18/file
then the following would be created:
c:/march18/file1000.dat
c:/march18/file1001.dat
c:/march18/file1002.dat
and so on..
The problem is that the number of characters in the pathname changes all the time. I can't use concatentate because then I get trailing spaces after 'file' depending on the length that I declare. I dont want to go in and change the code every time I enter a new path. Annoying!
Please help!
Thanks.
Example:
user enters: c:/march18/file
then the following would be created:
c:/march18/file1000.dat
c:/march18/file1001.dat
c:/march18/file1002.dat
and so on..
The problem is that the number of characters in the pathname changes all the time. I can't use concatentate because then I get trailing spaces after 'file' depending on the length that I declare. I dont want to go in and change the code every time I enter a new path. Annoying!
Please help!
Thanks.