I am trying the contents of an array into a file with each element of the array in a new line in the file.

```
IFS=$'\n'   
echo "${mtches[@]}" > sample1.txt 

```

The content of mtches is "qwe" and " asd". But the `sample1.txt` file contains `qwe asd` in a single line. Why is it not taking IFS value into the picture?