I m working cucumber with java automation framework , there one directory has one text file which I coded like (Every time it is renaming ) , I want to pick up that new renaming file and after opening that file I want to update some particular data and save it for further code.
Can anyone help me how can I open text file , How can I update and close it again, want to update particular data (see example below)(There has Name column and Value in second raw , want to update Name data every time with any random string) Text file data :
Name | DOB | Gender | Komal | 5-6-1992 | Female