Page cover

📂Filesystem Functions

Read File

อ่านไฟล์ที่ถูกเรียกตามที่อยู่ที่กำหนด (path)

<string> readfile(<string> path)

Write File

สร้างไฟล์/เขียนทับไฟล์ ลงไปยังที่อยู่ที่กำหนด (path) โดยสามารถระบุข้อมูลลงไปในไฟล์นั้นได้ (contents)

นามสกุลไฟล์ที่ไม่อนุญาตให้ใช้งาน: .exe, .scr, .com, .csh, .msi, .vb, .vbs, .vbe, .ws, .wsf, .wsh, .ps1

<void> writefile(<string> path, <string> contents)

Append File

เขียนเพิ่มต่อจากไฟล์ที่กำหนด (path) โดยค่าที่เพิ่มต่อเข้าไปสามารถกำหนดได้ตรง (content)

<void> appendfile(<string> path, <string> content)  

List File

เรียกดูไฟล์ทั้งหมดในโฟลเดอร์

<table> listfiles(<string> folder)

Is File

เช็คว่ามีไฟล์ (path) อยู่รึป่าว ถ้ามีจะส่งค่า true ออกมาก

<bool> isfile(<string> path)

Delete File

ลบไฟล์จากที่อยู่ที่กำหนด

<void> delfile(<string> path)

Is Folder

เช็คว่ามีโฟลเดอร์ (path) อยู่รึป่าว ถ้ามีจะส่งค่า true ออกมาก

<bool> isfolder(<string> path)

Make Folder

สร้างโฟลเดอร์จากที่อยู่ที่กำหนด

<void> makefolder(<string> path)

Delete Folder

ลบโฟลเดอร์จากที่อยู่ที่กำหนด

<void> delfolder(<string> path)

Last updated