So what kind of data are you trying to read? (The 280 sounds very familiar to me.)
Like anonymous monk suggests open the file in binmode. In fact it doesn’t harm to always do this.
You could for example read the bytes (skipping the new lines) and count the number of bytes you have read. So you read byte for byte with a while loop and when you encounter a new line you use a next to continue with the next iteration.
HTH
In reply to Re: how to read data for every 280 character ?
by dHarry
in thread how to read data for every 280 character ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |