Instructions: readread <variable>
Instructions: readread #<number>, <variable>
Instructions: readRead Data Types: Text Item selector "[]": Text Glossary: text, text_valtext in Integer numbers: Binary Floating point: Binary Text functions: binstrbinary mode. Default stream is Constants: stdinstdin. Flow control: if … then Flow control: try … thenThe 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_valText is Instructions: readread 'as is', every byte making a character. Flow control: if … then Flow control: try … thenThe destination Data Types: Text Item selector "[]": Text Glossary: text, text_valtext 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 … thenthe Data Types: Text Item selector "[]": Text Glossary: text, text_valtext is truncated according to Flow control: if … then Flow control: try … thenthe Glossary: number, num_valnumber of bytes actually Instructions: readread.
You probably should Text functions: convert Instructions: convertconvert Flow control: if … then Flow control: try … thenthe Instructions: readread Integer numbers: Binary Floating point: Binary Text functions: binstrbinary data Text functions: stringto text with Text functions: convert Instructions: convertconvert <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: convertconvert mytext from ucs4
vipsi>
|