Previous Page Next Page Contents

pathname -- create a platform dependent path name

Introduction

pathname(dir, subdir...) returns a relative path name valid on the used operating system.

Call(s)

pathname(dir, subdir, ..)
pathname(Root, dir, subdir, ..)

Parameters

dir, subdir, .. - names of directories: character strings

Options

Root - makes pathname generate an absolute path name

Returns

a string.

Related Functions

fclose, finput, fopen, fprint, fread, ftextinput, LIBPATH, loadproc, package, print, protocol, read, READPATH, write, WRITEPATH

Details

Example 1

The following examples are created on a UNIX/Linux system:

>> pathname("lib", "linalg")
                               "lib/linalg/"
>> pathname(Root, "lib", "linalg") . "det.mu"
                           "/lib/linalg/det.mu"

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000