vipsi - the friendly vip script interpreter

Instructions

read

Instructions: readread <variable>
Instructions: readread #<number>, <variable>

Instructions: readRead Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
in Integer numbers: Binary
Floating point: Binary
Text functions: binstr
binary
mode.
Default stream is Constants: stdinstdin. Flow control: if … then
Flow control: try … then
The
stream may be changed with #number.

Instructions: readReads from tty (terminal) without echo. No conversion applied. Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
Text
is Instructions: readread 'as is', every byte making a character. Flow control: if … then
Flow control: try … then
The
destination Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
Glossary: Variable, var_refvariable is filled with data from stream. On timeout, eof Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
error Flow control: if … then
Flow control: try … then
the
Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
is truncated according to Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber of bytes actually Instructions: readread.

You probably should Text functions: convert
Instructions: convert
convert
Flow control: if … then
Flow control: try … then
the
Instructions: readread Integer numbers: Binary
Floating point: Binary
Text functions: binstr
binary
data Text functions: stringto text with Text functions: convert
Instructions: convert
convert
<variable> from utf8
.

vipsi> Instructions: var
How does VScript::Value() work?: Var*&
var
mytext = Text functions: spacestrspacestr(20000)
vipsi> Instructions: openinopenin #9, "myfile.txt" vipsi> Instructions: readread #9, mytext vipsi> Instructions: closeclose #9 vipsi> Text functions: convert
Instructions: convert
convert
mytext from ucs4
vipsi>

Valid HTML   Valid CSS