Author Topic: WriteFile  (Read 809 times)

0 Members and 1 Guest are viewing this topic.

Offline hugoleonardofa

  • Major(1)
  • Posts: 5
WriteFile
« on: January 19, 2011, 10:17:38 pm »
because it does not work on my server? ???

Code: [Select]
function WriteFile(FileName, Data: string): boolean;
begin
    WriteFile('test.txt','Hello World!');
    WriteLn(ReadFile('test.txt')); //Outputs "Hello World!"
end;

Scripting=1
Soldat Server Version : 2.6.5
« Last Edit: January 19, 2011, 10:33:28 pm by hugoleonardofa »

Offline dnmr

  • Camper
  • ***
  • Posts: 315
  • emotionally handicapped
Re: WriteFile
« Reply #1 on: January 20, 2011, 01:23:31 am »
seems like you need to learn some soldatscripting basics first
http://forums.soldat.pl/index.php?topic=29911.0

Offline Zapper

  • Major(1)
  • Posts: 31
Re: WriteFile
« Reply #2 on: January 20, 2011, 05:43:05 am »
what the ^&ck?
writefile is`nt event :d.

Offline hugoleonardofa

  • Major(1)
  • Posts: 5
Re: WriteFile
« Reply #3 on: January 21, 2011, 06:26:46 am »
Thanks, I had not seen this topic