Load .txt file
#1

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.
Reply
#2

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);
}
Reply
#3

Is there any way i can Load file (.txt) from Other folders in Computer?
Reply
#4

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
Reply
#5

Didn't understood what it do.
Can anyone show me an Example like to get any file from my documents?
Reply
#6

In the host you wont have my documents, all you have is scriptfiles, just saying though.
Reply
#7

Hmm, Ye.
So, i will create file and load :P

Thanks for help guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)