Difference between revisions of "Disk.getLabel"
From ComputerCraft Wiki
(anh con may voi nhau xem nha) |
(Undo revision 1795 by 37.59.80.67 (talk)) |
||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
+ | {{Function | ||
+ | |name=disk.getLabel | ||
+ | |args=[[string (type)|string]] side | ||
+ | |api=disk | ||
+ | |returns=[[string (type)|string]] disk label | ||
+ | |addon=ComputerCraft | ||
+ | |examples= | ||
+ | {{Example | ||
+ | |desc=Checks for data saved on the disk in the bottom drive | ||
+ | |code=print(disk.getLabel("bottom")) | ||
+ | |output=Floppy --'''Output changes according to the disk label''' | ||
+ | }} | ||
+ | }} |
Revision as of 14:26, 24 June 2012
Function disk.getLabel | |
No description provided. | |
Syntax | disk.getLabel(string side) |
Returns | string disk label |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Checks for data saved on the disk in the bottom drive | |
Code |
print(disk.getLabel("bottom")) |
Output | Floppy --Output changes according to the disk label |