forked from challenge-project/challenge-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFile.Script.txt
More file actions
34 lines (27 loc) · 845 Bytes
/
Copy pathFile.Script.txt
File metadata and controls
34 lines (27 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
// File.Script.txt
// by BigBang1112
// part of Universe Library Set
// Reading title pack files through HTTP.
// This library does depend on more libraries from the Universe Library Set:
// - Http.Script.txt
// You only need to use the libraries above, although it's recommended to use the whole set.
*/
/*
// Compatible contexts:
// - CManiaApp
// - CMode
// - CServerPlugin?
*/
#Include "Libs/BigBang1112/Http.Script.txt" as Http
CParsingDocument XML(Text _FileName) {
declare Content = Http::SyncGET_Result("file://" ^ _FileName, False, "", True);
if(Content == "") return Null;
return Xml.Create(Content);
}
Text Read(Text _FileName) {
return Http::SyncGET_Result("file://" ^ _FileName, False, "", True);
}
Text Write(Text _FileName, Text _Content) {
return Http::SyncPOST_Result("file://" ^ _FileName, _Content, "", True);
}