Jump to content

Readline to " . "


 Share

Recommended Posts

Hello, I would like to read the one line in a text document and this after the "." stop reading this and then add a variable that stores the value.
I also need that one line after the "." is read and stored in a variable

 

 

$einlesen = FileOpen("C:\Users\janrh\OneDrive\Desktop\Datum.txt", 1)
$zeilenanzahl = _FileCountLines($einlesen)
for $i = 1 to $zeilenanzahl


$line = FileReadLine($f, $i)
$str = StringMid($line, ".")

MsgBox(0, $str)

 

 

this is my previous approach he should be up to "." read and then save the value but irgendig how do I get to no result

 

Error Code:

==> Unknown function name.:
$zeilenanzahl = _FileCountLines($einlesen)
$zeilenanzahl = ^ ERROR

 

 

Link to comment
Share on other sites

  • Developers

What is this thread different from the one I closed? 

Did you actually read those forum rules?

Jos

Everybody else stay out please.

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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