Skip to main content

JSONReader.OpenFile

OpenFile

Syntax

OpenFile(<JSONFileName>, <Encoding>)

Parameters

<JSONFileName> (required)

Type: String. Name of the file containing JSON text.

<Encoding> (optional)

Type: String, TextEncoding. Enables to set encoding of input file. Use this parameter for files in the following encodings.

  • Big5
  • UTF-32
  • UTF-32BE
  • UTF-32LE
  • UTF32_PlatformEndian
  • UTF32_OppositeEndian
  • SCSU
  • BOCU-1
  • US-ASCII
  • ISO-8859-1
  • iso-8859-13
  • iso-8859-15
  • iso-8859-2
  • iso-8859-3
  • iso-8859-4
  • iso-8859-6
  • iso-8859-7
  • iso-8859-8
  • iso-8859-9
  • GB_2312-80
  • cp437
  • cp737
  • cp775
  • cp850
  • cp851
  • cp852
  • cp856
  • cp857
  • cp858
  • cp860
  • cp861
  • cp862
  • cp863
  • cp864
  • cp865
  • CP868
  • cp869
  • cp874
  • cp875
  • cp922
  • cp930
  • cp933
  • cp935
  • cp937
  • cp939
  • cp1006
  • cp1025
  • cp1097
  • cp1098
  • cp1112
  • cp1122
  • cp1123
  • windows-874
  • windows-950
  • windows-1250
  • windows-1252
  • windows-1253
  • windows-1254
  • windows-1255
  • windows-1256
  • windows-1257
  • windows-1258
  • macintosh
  • x-mac-greek
  • x-mac-centraleurroman
  • x-mac-turkish
  • hp-roman8
  • Adobe-Standard-Encoding
  • ISO-2022-KR
  • ISO-2022-CN
  • ISO-2022-CN-EXT
  • HZ-GB-2312
  • windows-57002
  • windows-57003
  • windows-57004
  • windows-57005
  • windows-57007
  • windows-57008
  • windows-57009
  • windows-57010
  • windows-57011
  • ebcdic-ar
  • ebcdic-de
  • ebcdic-dk
  • ebcdic-he
  • ebcdic-xml-us
  • IBM037
  • IBM278
  • IBM280
  • IBM284
  • IBM285
  • IBM290
  • IBM297
  • IBM367
  • IBM420
  • IBM424
  • IBM500
  • ibm-803
  • IBM-Thai
  • ibm-867
  • IBM870
  • IBM871
  • ibm-901
  • ibm-902
  • IBM918
  • ibm-971
  • IBM1026
  • ibm-1129
  • IBM1047
  • ibm-1130
  • ibm-1132
  • ibm-1133
  • ibm-1137
  • IBM01140
  • IBM01141
  • IBM01142
  • IBM01143
  • IBM01144
  • IBM01145
  • IBM01146
  • IBM01147
  • IBM01148
  • IBM01149
  • ibm-1153
  • ibm-1154
  • ibm-1155
  • ibm-1156
  • ibm-1157
  • ibm-1158
  • ibm-1160
  • ibm-1162
  • ibm-1164
  • ibm-1364
  • ibm-1371
  • ibm-1388
  • ibm-1390
  • ibm-1399
  • ibm-4899
  • ibm-4971
  • ibm-4909
  • ibm-5123
  • ibm-8482
  • ibm-16684

Default value: UTF-8.

Description

Opens JSON file to be read by a given object. If JSON has already been read from another file or line before this method is called up, the reading will stop and the object initializes for reading from the file shown.

Availability

Thin client, mobile client, server, thick client, external connection, mobile application (client), mobile application (server), mobile standalone server.

Example

JSONReader = New JSONReader;
JSONReader.OpenFile("c:/docs/data.json");

Translation

Русская версия: ЧтениеJSON.ОткрытьФайл (JSONReader.OpenFile)