User Tools

Site Tools


contributors:jh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
contributors:jh [2022/08/25 14:13] – [Scratchpad] jerryhoppercontributors:jh [2022/08/25 15:49] (current) jerryhopper
Line 77: Line 77:
  
 **RESTAPI**  **RESTAPI** 
 +how to use restApi
 +
 +via ArkensoR (https://discord.com/channels/105462288051380224/976155351999201390/996058255010832525)
 <code> <code>
 class TestCallback : RestCallback class TestCallback : RestCallback
Line 93: Line 96:
 ctx.POST(callback,"RequestPath?Argument=Something", "{\"someVar\": 1337}"); ctx.POST(callback,"RequestPath?Argument=Something", "{\"someVar\": 1337}");
 </code> </code>
 +
 +
 +**FileHandle**
 +
 +Scripts/Core/generated/System/FileHandle.c
 +
 +<code>
 +FileHandle file = FileIO.OpenFile("$profile:testiik.txt", FileMode.WRITE);
 +if (file != 0)
 +{
 +file.FPrint("A");
 +file.FPrint(file, "B");
 +file.FPrint(file, "C");
 +file.CloseFile();
 +}
 +
 +</code>
 +
  
  
contributors/jh.1661433187.txt.gz · Last modified: 2022/08/25 14:13 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki