Load .txt file - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Load .txt file (
/showthread.php?tid=479020)
Load .txt file -
Avi Raj - 02.12.2013
Hello Guys,
I want a Small script.
Can anyone show me easy thing on which i could load a .txt file which is already there(already created).
Thanks.
Re: Load .txt file -
SilentSoul - 02.12.2013
pawn Код:
new File:example = fopen("yourfilename.txt", io_read);
if(example)
{
new string[64];
fread(example, string);
//SendClientMessage(playerid,-1,string);
//print(string);
fclose(example);
}
Re: Load .txt file -
Avi Raj - 02.12.2013
Is there any way i can Load file (.txt) from Other folders in Computer?
AW: Load .txt file -
Nero_3D - 02.12.2013
There is
links - Access your server root from PAWN with "fopen"
The .bat creates a shortcut on your OS to jump out of the scriptfiles folder
Re: Load .txt file -
Avi Raj - 02.12.2013
Didn't understood what it do.
Can anyone show me an Example like to get any file from my documents?
Re: Load .txt file -
Beckett - 02.12.2013
In the host you wont have my documents, all you have is scriptfiles, just saying though.
Re: Load .txt file -
Avi Raj - 03.12.2013
Hmm, Ye.
So, i will create file and load :P
Thanks for help guys.