File Group

HostExplorer Programming

File Group

3270 5250 VT

ChDir—Changes the default directory for the specified drive. It does not change the default drive.

ChDrive—Changes the default drive.

Close—Closes a file, concluding input/output to that file.

CurDir—Returns the path (including the drive letter) of the current default directory for the specified drive.

Dir—Returns a string representing the name of a file, directory, or folder that matches a specified pattern or file attribute or the volume label of a drive.

EOF—Returns a value indicating whether the end of a file has been reached.

FileAttr—Returns information about an open file. Depending on the attribute chosen, this information is either the file mode or the operating system handle.

FileCopy—Copies a file.

FileDateTime—Returns a string that indicates when a specified file was last modified.

FileLen—Returns a Long that indicates the length of the specified file.

FreeFile—Returns the lowest unused file number.

Get—Reads a variable from a file opened in Random or Binary mode.

GetAttr—Returns an integer representing the attributes of a file, directory, or folder.

Input (method)—Returns a string containing characters from a file opened in Input or Binary mode.

Input (statement)—Reads data from an open sequential file and assigns the data to variables.

Kill—Deletes files from a disk.

LineInput—Reads a single line from an open sequential file and assigns it to a string variable.

Loc—Returns a Long specifying the current read/write position within an open file.

Lock—Controls access by other processes to all or part of a file opened using the Open statement.

LOF—Returns a Long representing the size, in bytes, of a file opened using the Open statement.

MkDir—Makes a new directory.

Name—Renames a file.

Open—Opens a file or device for input or output.

Print—Writes display-formatted data to a sequential file.

Put—Writes a variable to a file opened in Random or Binary mode.

Reset—Closes all open disk files and writes any data still remaining in the operating-system buffer to disk.

RmDir—Removes an existing directory or folder.

Seek (method)—Returns a Long specifying the current read/write position within a file opened using the Open Statement.

Seek(statement)—Sets the position for the next read/write operation within a file opened using the Open statement.

SetAttr—Sets attribute information for a file.

UnLock—Controls access to an open file.

Write—Writes data to an open sequential file.