Here is the code i have written, just i am reading content from one file(inputFile) and substitute couple of string then write it into another file(outputFile).
i am not sure whats going wrong in the below code, because as soon as i execute the above method then i am not able to read the updated file(outputFile). I am receiving empty string.
Additional observation, however after update the file if i open the file manually then i am able to read the file programmaticaly. Need help and advice where i am making mistake.