module.exports = function sendFile(name, absolute){
    return function sendFile(r__, res){
    var fs = require('fs')
       ,fstream = fs.createReadStream((absolute ? '' : __dirname + '/../../') + name)

        fstream.on('open',
        function on_fstream_open(fd){
            return fs.fstat(fd,
            function on_fstat(err, stat){
                if(err){
                    res.statusCode = 500
                    log('sendFile err: ', err)
                    res.txt(err.code || String(err))
                    return
                }
                res.setHeader('Content-Length', stat.size)
                res.setHeader('Content-Type',(
                   ~name.indexOf('css') ? res.ContentTypes.TextCSS :
                   ~name.indexOf('.js') ? res.ContentTypes.AppJS :
                    res.ContentTypes.TextPlain)['Content-Type']
                )
                fstream.pipe(res)
                return
            }
            )
        }
        )
        fstream.on('error',
        function on_fstream_error(err){
            res.statusCode = 500
            log(err)
            return res.txt(err.code || String(err))
        }
        )
    }
}

module.exports = function sendFile(name, absolute, start, end){
    return function sendFile(r__, res){
    var fs = require('fs')
       ,fstream = fs.createReadStream(
            (absolute ? '' : __dirname + '/../../') + name,
            { start: start, end: end }
        )

        fstream.on('open',
        function on_fstream_open(fd){
            return fs.fstat(fd,
            function on_fstat(err, stat){
                if(err){
                    res.statusCode = 500
                    log('sendFile err: ', err)
                    res.txt(err.code || String(err))
                    return
                }
                res.setHeader('Content-Length', stat.size)
                res.setHeader('Content-Type',(
                   ~name.indexOf('css') ? res.ContentTypes.TextCSS :
                   ~name.indexOf('.js') ? res.ContentTypes.AppJS :
                    res.ContentTypes.TextPlain)['Content-Type']
                )
                fstream.pipe(res)
                return
            }
            )
        }
        )
        fstream.on('error',
        function on_fstream_error(err){
            res.statusCode = 500
            log(err)
            return res.txt(err.code || String(err))
        }
        )
    }
}

add `start`, `end` agruments of `createReadStream()`