4.5.2 jp1Imdd.readFile
This method reads a file located at the path specified by the parameter and returns its content as string type. This method can read a UTF-8 encoded file. The following table shows the details of the jp1Imdd.readFile method.
- Method name
-
String jp1Imdd.readFile(String pathname)
- Parameters
-
- pathname
-
The absolute path to the file to be read by the method.
Separate the path with a forward slash (/) or backslash (\).
- Return values
-
The content of the file the method read
If a BOM is placed in the file, a string without the BOM is returned.
- Exception
-
- FileNotFoundException
-
-
The file cannot be opened for some reasons
-
If the file does not exist, the file is not a normal file but a directory
-
- IOEXception
-
-
If an I/O error occurs
-