This discussion is archived
4 Replies Latest reply: Jul 19, 2007 10:21 AM by 807605 RSS

File Handling - Problem in counting number of records

807605 Newbie
Currently Being Moderated
Hi I have count the total number of records (Lines) in a file

Number of Records = File Size / Record size

Here Record size is fixed

For eg., 4 Records with each record of size 10, then the expected file size is 40. But in my case file size is getting varied in like instaed 40 bytes it says 41 bytes. Because of this I'm facing a problem in counting number of records

Could any one solve this??

Thanks in Advance,
Bala