Hi,
I think you need to understand how WebSphere cluster works.
You have unclear application design, because why you need to create file and then read it and show this data (something wrong here).
First of all
you should use shared directory for both nodes.
See
J2EE Connector Architecture (JCA) 1.5 standard - this is good decision for Flat File processing. (JCA Adapters are perfectly solutions for WebSphere cluster).
When i run application , assume that my request goes to node 1 server. I am working on this node server so i visit the page which saves data in txt file . I save the data.
Now the txt file is saved in directory of node 1 server.
This statement is not correct because not all resources couldn't be retried.