xBlinQzzz Posted February 18, 2019 Share Posted February 18, 2019 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 More sharing options...
Developers Jos Posted February 18, 2019 Developers Share Posted February 18, 2019 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 More sharing options...
ScottW Posted February 18, 2019 Share Posted February 18, 2019 (edited) -snip- READ MY POST PLEASE! oops. sorry. Edited February 18, 2019 by Jos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now