Noogλe

search input

Function of the day

  • Read the contents of a file removing the trailing \n

    Inputs

    file
    1. Function argument

    Type

    fileContents :: path -> string
    

    Examples

    lib.strings.fileContents usage example

    $ echo "1.0" > ./version
    
    fileContents ./version
    => "1.0"