System.IO.File.ReadLines Method .net 4.0
Posted on 2012-08-10
I have a nested code that is binding to a datasource. Container.DataItem is a list of files.
I can get all the properties from the files, System.IO.File.ReadLines is working, but I can't figure out how to read a line that has a set of characters. I only want to read one line that has the specified characters.
<%# System.IO.File.ReadLines(Container.DataItem.ToString()).Contains("Please") %>
I know this would work, if I got the syntax right. Any help is very appreciated!