file load G-code txt.file in arduino

Perhaps it would be better if you described the project in more detail. There may be solutions that you have not thought of.