add readline and getlinesize

1. Add read by line function
2. Add get size in line function