Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > File Input and Output Methods > Write Variable to File MethodThe Write Variable to File method writes a variable to a file opened in random mode or binary mode. It does not return a value. Usage for this method with random mode and binary mode is the same usage for these modes with the Get File Contents method. For more information, see Usage with Random Mode and Usage with Binary Mode. The Put statement uses the default character encoding of the local operating system. It does not write to the file in Unicode format. FormatPut [#]filenumber, [recnumber], varName The following table describes the arguments that you can use with this method.
ExampleThe following example opens a file for random access, puts the values 1 through 10 in this file, prints the contents of the file, and then closes it: Sub Button_Click |
Siebel VB Language Reference | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |