I’m needing help to read a specific line with Javascript and this is a part of my code to try read the file:
`try{
var sr: StreamReader = new StreamReader("./game_Data/Resources/SaveFile");
var fileRead = sr.ReadToEnd();
sr.Close();
}
catch (e){
print("Error to read file!");
}
var lines: String[] = fileRead.Split('
'[0]);
for(var line: String in lines){
if(line.Trim() == "Night"){
gameContinue = line.Substring(line.Length - 7);
}
}`