Re: Lines in a text file




"Les" <vb4@xxxxxxxxxxx> wrote
> Note that each
> line in the text file will be of the same length which I forgot to mention
> to you initially, sorry for that. I was thinking if I knew the length of
> the first line and was able to get the total size in bytes of the file that
> a simple division would get the right answer but it appears that I am always
> slightly off.

Post your exact code. Perhaps someone will see why you are slightly off....

How far are you off?
(Did you account for the CrLf characters? Is there an extra line at the end?)


LFS


.



Relevant Pages

  • Re: Lines in a text file
    ... > Well it looks as though you are correct in that I did not take into account ... > the cr/lf characters. ... LFS ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Lines in a text file
    ... Les ... > Post your exact code. ... > (Did you account for the CrLf characters? ...
    (microsoft.public.vb.general.discussion)
  • Re: Defense of "false titles"
    ... In message, LFS ... calculating how much time he would save by not shaving but he has yet to provide an account of how this extra time is being spent. ...
    (alt.usage.english)
  • Re: weaving info sought
    ... > This practice has cut my spam by more than 95%. ... I did have to abandon a perfectly good email account... ... Prev by Date: ...
    (rec.crafts.textiles.yarn)
  • Re: UserName of a process
    ... foreach (ManagementObject logonSession in ... foreach(ManagementBaseObject account in ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)