How to display on a web page only the desired portion of the file?

There's a text file, in which there are several rows which should be displayed in the web interface, the file is on disk, you need to read a file from a single character(ex."local") to the other (approx."}"). What method to use (indexof, RandomAccessFile, etc.?) . Java started learning recently, so please do not scold, thanks in advance. An example of the songwriter:
CONNECT = 20
REPORT = 23
CONTINUE = 31
APPLYCHARGING = 35
REP_APP_CON = 233531

BYPASS_all_SERVICES = "OFF" -- OFF/ON

local SIP_TERM = {
SERVICE_BYPASS = true,
APP_SERVER_TYPE = "HTTP",
APP_SERVER_IP = "999.999.1.8",
IDP_RES = CONNECT
ParamRequet = { "CALLING_NUM", "CALLED_NUM"}
}

local ROAM_CHECK = {
SERVICE_BYPASS = true,
APP_SERVER_TYPE = "ORACLE",
APP_SERVER_IP = "RADIUS", --settings connect to /usr/lib/instantclient_12_1/tnsnames.ora
IDP_RES = REP_APP_CON,
ParamRequet = { "CALLING_NUM", "CALLED_NUM"}
}

if BYPASS_all_SERVICES == "ON" then
print("\nContinue")
return 1, 0, CONTINUE Send Continue --

elseif SIP_TERM.SERVICE_BYPASS == true then
print("\nSIPOnly")
return 2, SIP_TERM.APP_SERVER_IP, SIP_TERM.IDP_RES -- SIPOnly

elseif ROAM_CHECK.SERVICE_BYPASS == true then
print("\nROAM_CHECK")
return 3, ROAM_CHECK.APP_SERVER_IP, ROAM_CHECK.IDP_RES -- ROAM_CHECK

else
print("No such player") -- if BYPASS - none of these
end

Appended Data
July 2nd 19 at 13:32
0 answer

Find more questions by tags HTMLJava