Estou trabalhando com o AutoIT para adicionar uma nova entrada a um arquivo de texto. No entanto, preciso adicioná-lo entre a última linha e a segunda última linha.
var informationtechnologydivisionmanager = [
{
"name": "Vacant",
"date": "02/6/2017",
"title": "Division Manager",
"mondayAM": "Main Campus AM",
"mondayPM": "Main Campus PM",
"tuesdayAM": "Main Campus AM",
"tuesdayPM": "Main Campus PM",
"wednesdayAM": "Main Campus AM",
"wednesdayPM": "Main Campus PM",
"thursdayAM": "Main Campus AM",
"thursdayPM": "Main Campus PM",
"fridayAM": "Main Campus AM",
"fridayPM": "Main Campus PM",
"saturdayAM": "Main Campus AM",
"saturdayPM": "Main Campus PM"
},
{
"name": "Vacant",
"date": "02/13/2017",
"title": "Division Manager",
"mondayAM": "Main Campus AM",
"mondayPM": "Main Campus PM",
"tuesdayAM": "Main Campus AM",
"tuesdayPM": "Main Campus PM",
"wednesdayAM": "Main Campus AM",
"wednesdayPM": "Main Campus PM",
"thursdayAM": "Main Campus AM",
"thursdayPM": "Main Campus PM",
"fridayAM": "Main Campus AM",
"fridayPM": "Main Campus PM",
"saturdayAM": "Main Campus AM",
"saturdayPM": "Main Campus PM"
},
{
"name": "Vacant",
"date": "02/20/2017",
"title": "Division Manager",
"mondayAM": "Main Campus AM",
"mondayPM": "Main Campus PM",
"tuesdayAM": "Main Campus AM",
"tuesdayPM": "Main Campus PM",
"wednesdayAM": "Main Campus AM",
"wednesdayPM": "Main Campus PM",
"thursdayAM": "Main Campus AM",
"thursdayPM": "Main Campus PM",
"fridayAM": "Main Campus AM",
"fridayPM": "Main Campus PM",
"saturdayAM": "Main Campus AM",
"saturdayPM": "Main Campus PM"
}
];
Quando eles salvam novos dados, eu quero inseri-los depois do } e antes do ];
Sou extremamente novo no AutoIT e estou tentando ao máximo aprender isso.