serena_knight Posted July 29, 2021 Posted July 29, 2021 there is a problem with filereadline the msgbox show only the firs 7 character were passed to the variable filein content: 3245671john phillips $selectin = @destopdir & "\selectedrecs.txt" $selectinh = fileopen($selectin,0) $recin = filereadline($selectinh) msgbox(0,"",$recin) ; this displays only 3245641 not john phillips >> sorry forgot how to make a edit box, but the code if very simple and i have done this type of code before without problems. i am at a loss on this one <<
Developers Jos Posted July 29, 2021 Developers Posted July 29, 2021 Check with an HEXEDITOR whether there is a 00 character after 3245671 .... or attach the file so we can check. Jos 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.
serena_knight Posted July 29, 2021 Author Posted July 29, 2021 sorry am not allowed to attach file, (company security), however i have manually modified the file first line (as presented in the initial post) i typeed aaaaaaabbbbbb in the first line, saved the file, and ran the code and what displayed with msgbox was aaaaaaa the bbbbbb did not show up.
serena_knight Posted July 29, 2021 Author Posted July 29, 2021 i took this code . out of the original script and put it in a simple script by itself and ran it. and it ran ok. so there is nothing wrong with the file. note there is nothing in front of this code in the original script except a while 1 $selectin = @destopdir & "\selectedrecs.txt" $selectinh = fileopen($selectin,0) $recin = filereadline($selectinh) msgbox(0,"",$recin) ; this displays only 3245641 not john phillips
serena_knight Posted July 29, 2021 Author Posted July 29, 2021 sorry for the bother all ,, looks like its working now
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