Jump to content

problem with filereadline


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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

 

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