One person is writing Ram Naam continuously with full devotion and concentration, praying for a wish to get fulfilled. On the other hand, another person is writing Ram Naam continuously without any devotion. Who will get benefited?

Both of them will get benefited. While the person who writes with love and devotion will be able to savor the result better, it is undeniable fact that the other person also will get the benefits.