Returns the contents of a file

alias        ascii
demo         dim         directory         directory write
func         format



returns the content of file nnn.


Returns the names of all files in the current directory.

directory("ddd")name("*.eee"): returns the names of all files *.eee in directory ddd.

number(inc): returns the number lines inc of file nnn.

read("?nnn")         Used to analyze the text of the file nnn:
Available commands:
help: gives the help.
end: end.
char: characters.
short: shorts.
long: longs.
float: floats.
data: datas anyflo format (ad1 = data number > = 0).
ad1,ad2: ad1 and ad2 are addresses.
Words form addresse ad1 to addresse ad2 are displayed according to the format: char long float.
read(nnn)number(inc) returns the float number inc of file nnn


File search takes place:
        First in current directory
        then in directory "ima"
        and finally in directory "env"

this command does not work in see mode.
See also read format


       returns the names of all files in directory "ima" without extension.
       returns the names of all files *.bmp in directory "ima".

read alias

read alias(nnn)

        Reads the alias file nnn.ali

read ascii

read ascii(nnn)

        Returns the decoding of ACIII file nnn.

read compile

read compile(nnn)

        Reads le the functions file nnn.func and the compile file If yes link is active (defalut) links all functions.

read demo

read demo com

        Reads the demo file of the command com.
Example: read demo for; reads file demo0_for.func


        Returns the size of file nnn.

read directory

read directory

        Returns the names of every file of the current folder.

read directory directory

        Returns the names of directories of the current folder.

read directory("ddd")

        Returns the names of every file of folder ddd.
format("eee"): files *.eee
read(0): only the first file
read(1): only the last file
read(2): only the first and last files

read directory("ddd")directory

        Returns the names of every directories of folder ddd.

read directory name("nnn")

        Returns the names of files nnn

read directory("ddd")name("nnn")

        Returns the names of files nnn of folder ddd.

read directory directory name("nnn")

        Returns the names of files nnn and directories.

Save result in file tmp

w=read directory("env")name("*.func");edit(w);
Edits the names of files *.func of directory env.
w=read directory("env")directory name("*.wav");edit(w);
Edits the names of files *.wav and files without extension of directory env.

read directory write

read directory("rrr")write directory("www")

        Copies directory rrr to directory www.

read func

read func(nnn)

        Reads the functions file nnn.func. If yes compile and yes link are active (default) all functions are compiled and linked.

read func(nnn) inclu("ccc")

        Reads the functions file nnn.func coded by read("nnn.func")write(".ext")inclu("ccc")
Note: if ccc=*: superuser
launch anyflo with option:
anyflo lan=nnn cod=*

read format


x=read format("anyflo") name("nnn")

        Assigns the datas of formated anyflo file nnn to x:

x=read format("char") name("nnn")

        Assigns the content of characters file nnn to x (8 bits).

x=read format("double") name("nnn")

        Assigns the content of doubles file nnn to x (sur 64 bits).
It has been necessary for writing such files by the command write name("nnn") format("fff").

x=read format("float") name("nnn")

        Assigns the content of floats file nnn to x (32 bits).

read name("nnn")format("htm")

        Returns the content of formated html file nnn (only htm tags of file code_htm are decoded).

x=read format("long") name("nnn")

        Assigns the content of longs file nnn to x (32 bits).

x=read format("short") name("nnn")

        Assigns the content of shorts file nnn to x (16 bits).

read generate


       Returns the evaluatiuon of expr.
Note: allows read options.
read("opt=1,2,3")generate("opt"); returns 1,2,3.
read("opt1=1,2,3;opt2=-1,-2")generate("opt2"); returns -1,-2.
read(read("fic"))generate("opt2"); returns -1,-2 if file fic contains:

read history

read history("nnn")

       Loads file nnn.his on commands stored.

read matrix


        Returns the float content of ascii file nnn containing nb matrices dimensions nx * ny (nx columns, ny lines):

x1,1 x1,2 ... x1,nx
x2,1 x2,2 ... x2,nx
xny,1 xny,2 ... xny,nx

x1,1 x1,2 ... x1,nx
x2,1 x2,2 ... x2,nx
xny,1 xny,2 ... xny,nx


x1,1 x1,2 ... x1,nx
x2,1 x2,2 ... x2,nx
xny,1 xny,2 ... xny,nx

After reading the command dim matrix returns the 3 integers nb,nx,ny.
In case of error the command returns NIL with message:
matrix(nb): error on line edited of matrix nb.
x: nx != nx0: different numbers of columns.
y: ny != ny0: different numbers of lines.

read name

read name("nnn")

        Returns the content of file named nnn.

read system

read system("com")

        Returns the result of the command com.
1) Typically, com can be a call program with arguments.
Exemple: x=read system("prog -1 4.5 A");
2) To run a program on another machine name "host" (under UNIX):
x=read system("rsh host prog -1 4.5 A")
3) It is necessary that the program provides an output.

read type

read type("nnn")

        Reads the file nnn of types nnn.type

read var

read var("nnn")

        Reads the variables file nnn.var


        1) read com "nom1,nom2"
        Reads file and adds the content of
read func "foo,fii"
Reads the functions file foo.func and adds the content of fii.func
2) read type1 type2 ... typen name("nnn")
        Reads objects of types types type1, type2, ..., typen of generic names nnn
read func var "foo,fii" reads the files foo.func foo.var and adds the contents of files fii.func fii.var

read write


Copies file n1 on file n2.
Copies all files of directory ../../bmp1 in directory ../../bmp1.

Command of conversion files according to their type


read write add

       Concatenates the file *.eee in file f.add
add("key_word"): key word between the files (by default the system chooses a key word).
dim(n): forces a random key word size n.
edit: edites the files names.
read("fold1/*.eee"): manages files of folder fold1.
write("fold2/f.add"): writes the file f.add in folder fold2.

       writes the files concatened in file fold1/f.add in folder fold2.

Ascii files translator

read("A")write("B") format("LA")format("LB")
Translates the ascii file A written in the language specified by the file LA in the file B written in the language specified by the file. LB.

read("A")write("B") var("word1")var("word2")
Translates the ascii file A in file B by replacing all occurrences of "word1" with "word2"

Note: His is a translation of words delimited by an alphabetic character left and right with an alphanumeric character.
If LA contains word mota and if LB contents word motb
       )mota is translated into )motb
       mota(x) is translated into motb(x)
       xmota is not translated
string: all sub strings A will be translated.
If A is:

if LA is:

and if LB is:
read("A")write("B")format("LA")format("LB")string; produces file B:

read write dim

read("nnn")write dim(n)
splits file nnn in files nnn_1, nnn_2, ... size n octets, d = 100000000 (100 Mo) default.
Useful for handle big datas.
See read write inv to gather those files into original file.
edit: edits teh files name.

Convertisseur de fichiers de fonctions

read("nnn.func")write("nnn.func")format("V_fra")format("V") format("koma_fra.htm")format("komb_fra.h") format("koma.htm")format("komb.h")
Translates functions file nnn.func written in the language specified by the file V_fra into the functions file nnn.func written in the language specified by the file V.
Any even number 2 * n files VAi et VBi can be specified, the first n vocabularies describing a language and the last n vocabularies describing another language.
format("koma_fra.htm")format("komb_fra.h") format("koma.htm")format("komb.h"): 2 files vocabularies are specified (for the interpreter and anyflo).

Fichiers html

A.htm is an html file with special characters, it will be written by encoding the characters in the format in html file B.htm.
1) This command is not an html code generator but simply treats the special characters (such as French accents) in a file already coded html.
2) Html expressions already established such as <...> and &...; are not coded, the characters < & are not no more. When a tag is not closed in the same line, it is automatically completed and a WARNING is generated. It is therefore essential to encode the characters & (in &amp;) and < (in &lt;).
3) Html codes are in code_htm and are read to launch anyflo (this file can be changed with the launch option htm).
4) The most common errors are:
       Do not code < is taken for a start tag
       Do not code & is taken for a start tag
       Write &nbsp instead of &nbsp; causing a bad coding any more.
debug: The file env/COMPTE_RENDU is written as:
       read file name -> write file name
       line number: error code html
       line where the error occurred
debug("nnn"): the errors file is nnn instead of nnn default env/COMPTE_RENDU.
directory("ddd"): search for files in the folder ddd.
Converts all files *.htm of folder dos back themselves.

read write inclu

read("dir1/")write("dir2/ext")inclu("ccc") Cryptes the file dir1/ in file dir2/ according to the code ccc.
read("dir2/")write("dir1")inclu("ccc") Uncryptes file dir2/ in file dir1/ when has been crypted by the preceding formula.
read("dir1/fic.c")write("dir2/ext")inclu("CODE") Cryptes the file dir1/fic.c in file dir2/fic.c.ext according the code CODE.
read("dir2/fic.c.ext")write("dir1")inclu("CODE") Uncryptes this file.
read("dir1/*.cc")write("dir2/ext")inclu("CODE") Cryptes all files dir1/*.cc of folder dir1 in files dir2/*.cc.ext according to the code CODE.
read("dir2/*.cc.ext")write("dir1")inclu("CODE") Uncryptes all those files.

read write inv

read("nnn")write inv
gathers files nnn_1, nnn_2, ..., (created by write("nom")write dim(n)) into file nnn.
Useful for processing big datas.
edit: edits teh files name.

read("nn.eee")write format("E1,...")format("F1,...")name

If nn=*mot1*, and if mot1 contained in a file Ei then nn=*mot1* is renamed nn=*mot2*, mot2 being the translation of mot1 in file Fi used by translate.func translating anyflo from English into another language xxx.


Read file input, replace all occurences of string string1 by string2 and write the result in file output.
output=input by default.
string2 is empty by default.
replace all occurences of string si_1 by si_2
debug: writes the numbers of lines changed and WRITE output if the file is saved.
dim=n: specifies the number maximal of lines edited (12 default).
Special characteres:
put ascii code.
replaces every \n by \n\\.


ttt=upp: converts lowercases of A to uppercases of B.
ttt=low: converts uppercases of A to lowercases of B.