ReadAllText() public method

public ReadAllText ( string fileName ) : string
fileName string
return string
        private IList <IDebugState> CreateDebugHistory(string debugHistoryPath, string correlationId)
        {
            var serializer = new Dev2JsonSerializer();
            var file       = DirectoryHelper.GetFiles(debugHistoryPath).FirstOrDefault(a => a.Contains(correlationId));

            if (file == null)
            {
                return(new List <IDebugState>());
            }

            return(serializer.Deserialize <List <IDebugState> >(FileHelper.ReadAllText(file)));
        }
        bool DebugHasErrors(string debugHistoryPath, string correlationId)
        {
            var serializer = new Dev2JsonSerializer();
            var file       = DirectoryHelper.GetFiles(debugHistoryPath).FirstOrDefault(a => a.Contains(correlationId));

            if (file == null)
            {
                return(false);
            }

            return(serializer.Deserialize <List <IDebugState> >(FileHelper.ReadAllText(file)).Last().HasError);
        }