Tired of using AI for only create array from TXT file

I using cursor with claude-sonet and this AI usually generate wrong result.
Can someone help me for this