Guardian Programmer's Guide

Table Of Contents
Contents
Guardian Programmer’s Guide421922-014
x
13. Manipulating File Names
13. Manipulating File Names
Overview 13-1
Identifying Portions of File Names 13-2
Working With File-Name Patterns 13-3
Scanning, Resolving, and Unresolving File Names 13-4
Scanning a String for a Valid File Name 13-4
Resolving Names 13-7
Truncating Default Parts of File Names 13-13
Extracting Pieces of File Names 13-15
Modifying Portions of a File Name 13-18
Modifying One Part of a File Name 13-19
Replacing a File-Name Suffix or File-Name Prefix 13-19
Replacing a Subpart of a Process ID 13-20
Comparing File Names 13-20
Searching For and Matching File-Name Patterns 13-21
Establishing the Start of a File-Name Search 13-21
Finding the Next Matching File Name 13-26
Terminating the File-Name Search 13-31
File-Name Matching 13-31
Manipulating File Names: An Example 13-33
14. Using the IOEdit Procedures
When to Use and When Not to Use EDIT Files 14-1
Overview of IOEdit 14-2
When Should You Use IOEdit? 14-2
Line Numbers and Records 14-4
Packed Line Format 14-5
The EDIT File Segment 14-7
IOEdit and Errors 14-7
Creating, Opening, and Initializing an IOEdit File 14-8
Opening an Already Existing File 14-8
Opening a Nonexistent File 14-9
Initializing an Already Open File 14-10