ovvio quello che scrivi è una stringa
prova così
Put #numfile, , format(conta + 1,"000000")