How can we Read and write a file using Javascript.....!! Which we can use in the Ajax without refreshing the page...
You can use javascript to READ a file that is located only on YOUR server (using AJAX). But the only way that you can use javascript to WRITE a file is to use AJAX (or even IFRAME or IMG tags) to send data to a server-side script (php,asp etc...) that will write the data that is sent for you.
You can NOT read a file on the client's computer(the computer where the browser is running). As mentioned here you can read files on other places on the internet, on your own server via regular ajax or in other domains using some tricks.