use async readFile. use bt.indexOf() to find character, and buffer.slice(start, end)