Jump to content

Just a Little Help..


Recommended Posts

I know this is probably a really stupid question to you guys but i really dont understand much about Filereadline and stuff

so this is what I have

$line = 1
Do 
$thetext = Filereadline("Text.txt",$line)
$line = $line + 1
Until $thetext = ""
Msgbox(0,"Scores", $thetext)

Lol i know im doing something wrong I just don't know What. Please Help Me!

Edited by kkKrazy
code
Link to comment
Share on other sites

$line = 1
$thetext = ""
Do
$thetext &= Filereadline("Text.txt",$line) & @CRLF
$line = $line + 1
Until $thetext = ""
Msgbox(0,"Scores", $thetext )
I'm not sure if that's what you wanted... that will read the whole file into one string (I think). I don't know where you got the variable $thescores from because it's not affected in your do... until loop which might be causing some sort of error.

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

$line = 1
$thetext = ""
Do
$thetext &= Filereadline("Text.txt",$line) & @CRLF
$line = $line + 1
Until $thetext = ""
Msgbox(0,"Scores", $thetext )
I'm not sure if that's what you wanted... that will read the whole file into one string (I think). I don't know where you got the variable $thescores from because it's not affected in your do... until loop which might be causing some sort of error.

Thank you for the really fast reply but it doesnt seem to work.. It only gets 1 line..

Fixed the $thescores thig wrong variable sorry

Edited by kkKrazy
code
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...