Text functions: file Instructions: filefile <filename>
Text functions: file Instructions: filefile <filename> = <text>
Text functions: file Instructions: filefile <filename> #= <text>
Create a Instructions: newnew Text functions: file Instructions: filefile Operators: Make Identifier "@"at Text functions: file Instructions: filefile system location <filename> Flow control: if … thenif it Operators: Bitwise Not "~" Operators: Boolean Negation "!"not already Numeric functions: existsexists.
Flow control: if … then Flow control: try … thenThe <path> must be a Glossary: text, text_valtext value. Flow control: if … then Flow control: try … thenThe path may be a full Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or partial path Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and may start with '~' for Flow control: if … then Flow control: try … thenthe user's home directory. Symbolic Text functions: link Instructions: linklinks are followed. All path components except Flow control: if … then Flow control: try … thenthe last one must Numeric functions: existsexist Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Vipsi command syntax: Instructions Instructions Glossary: Instructioninstruction Text functions: file Instructions: filefile fails with an error which may be caught with Flow control: try … thentry.
Text functions: file Instructions: filefile without a following Operators: Assignment "=" Built-in operators: Assignments:assignment Vipsi command syntax: Operators Operators Glossary: Operatoroperator just creates Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or touches Flow control: if … then Flow control: try … thenthe Text functions: file Instructions: filefile. (bogus in version 0.8.7: truncates!)
Text functions: file Instructions: filefile followed by Vipsi command syntax: Operators Operators Glossary: Operatoroperator = rewinds Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and truncates Flow control: if … then Flow control: try … thenthe Text functions: file Instructions: filefile Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Instructions: writewrites Flow control: if … then Flow control: try … thenthe <text> in Integer numbers: Binary Floating point: Binary Text functions: binstrbinary mode to Flow control: if … then Flow control: try … thenthe Text functions: file Instructions: filefile.
Text functions: file Instructions: filefile followed by Vipsi command syntax: Operators Operators Glossary: Operatoroperator #= appends Flow control: if … then Flow control: try … thenthe <text> in Integer numbers: Binary Floating point: Binary Text functions: binstrbinary mode to Flow control: if … then Flow control: try … thenthe Text functions: file Instructions: filefile.
All character codes should be in range 0 ... 255 Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or they are chopped losing information. You should Text functions: convert Instructions: convertconvert character encoding beforehand manually with Flow control: if … then Flow control: try … thenthe Vipsi command syntax: Functions Functions Glossary: Functionfunction Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Vipsi command syntax: Instructions Instructions Glossary: Instructioninstruction Text functions: convert Instructions: convertconvert, most likely to utf8.
There is also a Vipsi command syntax: Functions Functions Glossary: Functionfunction Text functions: file Instructions: filefile, which Instructions: readreads from a Text functions: file Instructions: filefile.
List functions: thisThis Vipsi command syntax: Instructions Instructions Glossary: Instructioninstruction may fail for a Glossary: number, num_valnumber of reasons Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Flow control: exit Shell Immediate Commands: exit, quit, endexit with an error. e.g.:
e.g.:
li> Text functions: file Instructions: filefile "dump" = List functions: globals Shell Immediate Commands: globalsglobals
li>
Instructions: var How does VScript::Value() work?: Var*&var myText = Text functions: file Instructions: filefile "~/.myPrefs/rcData"
Text functions: convert Instructions: convertconvert myText from utf8
...
Text functions: convert Instructions: convertconvert myText to utf8
Text functions: file Instructions: filefile "~/.myPrefs/rcData" = myText
|