Writing a file is an important operation in loadrunner and this can be put into a verity of uses. The file writing code is a must have in your artillery and is very simple to implement. The file writing can be used for
Data Validations
Capturing Valid Data from front-end
Logging something...