simple file insert, delete by char, index api