Jump to content

How to determine number of lines in text file?


Go to solution Solved by JohnOne,

Recommended Posts

Posted

Hi! :bye:

I would like to overwrite last (or one before) line in a text file.

It looks that I could use  "_FileWriteLineTo".

But how to determine number of lines in such file?

Is there some simple function for this and I dont see it?  o:)

And, is there something for deleting last line?

Thanks!

 

  • Moderators
Posted

Not to mention, if you're wanting to append to the end of a text file, just use FileWriteLine and forget about the line numbers. The help file is your friend.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...