im having problems to create a simple folder with time and date and then create a file with custom filename, could someone please help me?
character(len=10) :: time,date
result = MAKEDIRQQ(time,date)
OPEN(UNIT=404, ACCESS='SEQUENTIAL', FORM='BINARY', FILE='/time,date/filename', STATUS='REPLACE', convert='big_endian')
thank you for your attention
There are numerous errors in your lines of code. You will need to sit down with a Fortran language manual and check that each line is syntactically correct and that it has the meaning that you wish it to have.
Here are some points.
- The variable names that you declare in the third line conflict with module variables in IFPORT.
- MAKEDIRQQ takes a single character argument, and that argument must have a value that is suitable for a directory name.
- FILE='/time,date/filename' implies that you want the filename to be, literally, the string /time,date/filename . Probably not what you wanted.