Summary
###########################################################################
File: filenseq.icn
Subject: Procedure to get highest numbered filename in a sequence
Author: David A. Gamey
Date: May 2, 2001
##########################################################################
This file is in the public domain.
###########################################################################
This procedure is useful when you need to create the next file
in a series of files (such as successive log files).
Usage:
fn := nextseqfilename( ".", "$", "log")
returns the (non-existent) filename next in the sequence .\$*.log
(where the * represents 1, 2, 3, ...) or fails
###########################################################################
Requires: MS-DOS or another congenial operating system
###########################################################################
Links: io
###########################################################################
Procedures:
nextseqfilename
Links:
io.icn
This file is part of the (main) package.
Source code.
nextseqfilename(dir, pre, ext)
This page produced by UniDoc on 2021/04/15 @ 23:59:54.