Я работаю с AutoIT, чтобы добавить новую запись в текстовый файл. Однако мне нужно добавить его между последней строкой и второй последней строкой.
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"
}
];
когда они сохраняют новые данные, я хочу иметь возможность вставить их после } и до ];
Я очень новичок в AutoIT и стараюсь изо всех сил, чтобы узнать его.