previous next Up Title Contents Index

clean_f routine

This routine is used to prepare a program to open a file. It first checks if the character string referring to the file name is too long. Next it composes the full file name (body file + extension) using the std_extention string if the input string does not contain the extension (defined by a dot extention delimiter). Finally it checks whether or not given file already exists. If it does, it will rename the file to a backup file name with an extension provided by the call. If the file does not exists, the routine will return a full file name.
call clean_f (file_name, file_length,std_extention,backup_extention,*err)

file_name : file name to be checked
file_length : number of characters composing the file_name
std_extention : default extention if not provided in the file name
backup_extention : default extention if the file already exists under the same name
file_name : valid file name for further processing
file_length : file name length
*err : error label in case of file name too long.


previous next Up Title Contents Index