concept file content in category dart
appears as: file content, The file content, file content

This is an excerpt from Manning's book Dart in Action.
The file content is equally similar to the DirectoryLister command-line application that you built earlier in the chapter. You use the FileContentHandler class to match on a path prefix of /fileContent, extract the filename that follows, read the file’s content as text, and return the text wrapped as a JSON string.