C.128. ReadFile()

Liest eine Datei ein.
ReadFile(Variablenname=Dateiname,Länge)
Liest den Inhalt einer Datei und speichert ihn in einer Variable. Dabei werden maximal Länge Zeichen eingelesen.
Asterisk-Versionen:
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
Interner Hilfetext zu dieser Applikation in Asterisk 1.4:
  -= Info about application 'ReadFile' =-

[Synopsis]
ReadFile(varname=file,length)

[Description]
ReadFile(varname=file,length)
  Varname - Result stored here.
  File - The name of the file to read.
  Length - Maximum number of characters to capture.
Differenz des internen Hilfetexts von Asterisk 1.2 zu 1.4:
— keine —
Differenz des internen Hilfetexts von Asterisk 1.4 zu 1.6:
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -1,10 +1,10 @@
     -= Info about application 'ReadFile' =-

   [Synopsis]
-  ReadFile(varname=file,length)
+  Read the contents of a text file into a channel variable

   [Description]
   ReadFile(varname=file,length)
-    Varname - Result stored here.
-    File - The name of the file to read.
-    Length - Maximum number of characters to capture.
+    varname  - Result stored here.
+    file     - The name of the file to read.
+    length   - Maximum number of characters to capture.