Jump to content

Recommended Posts

Posted
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

 

 

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...