## `Pref::verboseRead` -- shows reading of files

#### Introduction

With `Pref::verboseRead` the reading of library files can be shown.

#### Call(s)

`Pref::verboseRead(value)`

#### Parameters

`value` | - | `0`, `1`, `2` or `NIL`

#### Returns

the last defined value

#### Related Functions

`read`, `fread`, `prog::trace`, `loadproc`

#### Details

- With `Pref::verboseRead` the reading of library packages and files can be shown.
- The arguments of `Pref::verboseRead` stays for
  `0`
    no messages when reading files (default)
  `1`
    message if a library packages will be read
  `2`
    messages if a package or any library function will be read
- A call of `Pref::verboseRead` without arguments returns the current value. The argument `NIL` will reset the default value, which is `0`.

#### Example 1

Show the reading of library packages:

    >> reset():
       Pref::verboseRead(1):
       sin(x)

          loading package 'Type' [mupad/share/lib/lib.tar#lib/]

                                   0.8414709848

Show reading of all library files:

    >> reset():
       Pref::verboseRead(2):
       sin(1.0)

          reading file mupad/share/lib/lib.tar#lib/SPECFUNC/sin.mu
          reading file mupad/share/lib/lib.tar#lib/SPECFUNC/sinh.mu
          reading file mupad/share/lib/lib.tar#lib/STDLIB/infinity.mu
          loading package 'Type' [mupad/share/lib/lib.tar#lib/]
          reading file mupad/share/lib/lib.tar#lib/TYPE/Arith.mu

                                   0.8414709848

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000