Sign in to follow this  
Followers 0
DexterMorgan

Just a Little Help..

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

$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

Share this post


Link to post
Share on other sites

Thank You it works now i just needed to change something...

$line = 1
$thetext = ""
Do
$thetext &= Filereadline("text.txt",$line) & @CRLF
$line = $line + 1
Until Filereadline("text.txt",$line) = ""
Msgbox(0,"Scores", $thetext )

code

Share this post


Link to post
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
Sign in to follow this  
Followers 0