Dev2.Scheduler.FileHelper.ReadAllText C# (CSharp) Method

ReadAllText() public method

public ReadAllText ( string fileName ) : string
fileName string
return string
        public string ReadAllText(string fileName)
        {
            return File.ReadAllText(fileName);
        }
    }

Usage Example

        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)));
        }
All Usage Examples Of Dev2.Scheduler.FileHelper::ReadAllText
FileHelper