What is the content of read ?
If it's "somefile.txt" it will work !
If it's the result of read=File.GetText(File.DirAssets,"somefile.txt"), it will for sure not work.
Because, in that case, read, is the content of the file and not it's name.
But, unfortunately you don't give enough information.