file load G-code txt.file in arduino

You do not say how the Arduinos are connected to the PC but here are some ideas

(1) Send the data to all of the Arduinos and have the target one recognise itself as the target and load the g-code

(2) use serial comms and only send the g-code to the appropriate COM port for the target Arduino

(3) use a network and only send the g-code to the appropriate IP address for the target Arduino