Jump to content

Recommended Posts

Posted

Is there any way i can make a variable with an html file?,

Lets say i make a text file called IP.txt on my webhosting site,

and i want it to read the file and in place of the varible make it the text in the .txt file

so i write a file "2.65.48.87" inside if the ip.txt, i want it to read the first line... and place it inside of a variable,

I'm puzzled as to what command this would be and how it works,

is it some kind of filereadline _inetget command or what?

Thank you for your time in reading this, it is being used for a file server.

tolle indicium

Posted

Hi,

sorry could you please explain it again with other words. You ve got a webserver. You got a ip.txt on this webserver. And now you want to read the first line of it?

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

From help file.

$file = FileOpen("test.txt", 0)

; Check if file opened for reading OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
Else
    $line = FileReadLine($file)
    FileClose($file)
EndIf
Posted

From help file.

$file = FileOpen("test.txt", 0)

; Check if file opened for reading OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
Else
    $line = FileReadLine($file)
    FileClose($file)
EndIf

Does that script work in a variable?, i don't think it does :/

-edit- Never mind, 'll just have them download the text file to a folder and have it read it form there :/

the goal was to read it directly form the page... but this works!

--------

Now my edit isn't working...

-------

tolle indicium

Posted

Hi,

did you try _InetGetSource?

so long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

Hi,

no problem. I do not know waht that is in English, but : "man sieht den Wald vor lauter Bäumen nicht"

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...