ajfiledata.c
Datatypes: AjPFile
File object
Sections: File Constructors data file values file exit
Functions: ajDatafileNewInNameC ajDatafileNewInNameS ajDatafileNewInNamePathS ajDatafileNewOutNameS
Returns an allocated data file pointer (AjPFile) if file exists
a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA
Synopsis
Prototype
AjPFile ajDatafileNewInNameC (
const char* name
);
Type | Name | Read/Write | Description |
const char* | name | Input | Filename. |
AjPFile | | RETURN | file pointer |
Input
Returns
Description
Returns an allocated data file pointer (AjPFile) if file exists
a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA
See Also
See other functions in this section
Availability
In release 6.4.0
Returns an allocated data file pointer (AjPFile) if file exists
a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA
Synopsis
Prototype
AjPFile ajDatafileNewInNameS (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Filename |
AjPFile | | RETURN | file pointer |
Input
Returns
Description
Returns an allocated data file pointer (AjPFile) if file exists
a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA
See Also
See other functions in this section
Availability
In release 6.4.0
Returns an allocated AjFileInNew pointer (AjPFile) if file exists
in the EMBOSS/data/(dir) directory, or is found in the usual directories
by ajDatafileNewInNameS
Synopsis
Prototype
AjPFile ajDatafileNewInNamePathS (
const AjPStr name,
const AjPStr path
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Filename in AjStr. |
const AjPStr | path | Input | Data directory name in AjStr. |
AjPFile | | RETURN | file pointer |
Input
name: | (Input) | Filename in AjStr. |
path: | (Input) | Data directory name in AjStr. |
Returns
Description
Returns an allocated AjFileInNew pointer (AjPFile) if file exists
in the EMBOSS/data/(dir) directory, or is found in the usual directories
by ajDatafileNewInNameS
See Also
See other functions in this section
Availability
In release 6.4.0
Returns an allocated output data file pointer (AjPFile) to a file in the
emboss_DATA area
Synopsis
Prototype
AjPFile ajDatafileNewOutNameS (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Filename in AjStr. |
AjPFile | | RETURN | file pointer. |
Input
name: | (Input) | Filename in AjStr. |
Returns
Description
Returns an allocated output data file pointer (AjPFile) to a file in the
emboss_DATA area
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajDatafileValuePath
Get the path to the active data directory
Synopsis
Prototype
const AjPStr ajDatafileValuePath (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | path. |
Returns
Description
Get the path to the active data directory
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajDatafileExit
Prints a summary of file usage with debug calls
Synopsis
Prototype
void ajDatafileExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Prints a summary of file usage with debug calls
See Also
See other functions in this section
Availability
In release 6.4.0