Standard Hascal print function
example :
print("Hello World");
Read string values from user
example :
print("What's your name ?");
var name = ReadStr();
print("Hi,",name);
Read int values from user
example :
print("What's your age ?");
var name = ReadInt();
print("your age :",name);
Read a character from user
example :
print("char :",ReadChar());
Read a bool values from user
example :
print("bool :",ReadBool());
Read float values from user
example :
print("float :",ReadFloat());
Convert values to int
example :
print(to_int("123456"));
Convert values to string
example :
print(to_string(123));
Convert values to float
example :
print(to_float("3.14"));
End program
example:
print("Hello");
exit(0);
print("Bye");
Removes a file
example :
RemoveFile("todo.txt");
Closes a file
example :
var file = File("todo.txt","w");
CloseFile(f);
Reads a file and returns a string value
example:
var myfile = File("todo.txt","r");
print(ReadFromFile(myfile));
Writes a string to a file
example :
var file = File("todo.txt","w");
WriteToFile(file,"1-test");
CloseFile(f);
Lists dirs,files on a path
example :
print(listdir("C:\\"));
Gets type of OS(win32,linux,freebsd,macos,...)
print(os_name());
Excutes a terminal command
example :
var comm = "";
while true {
print2("MyCMD>>>");
comm = ReadStr();
system(comm);
}
GetYear():int
: Get yearGetMonth():int
: Get monthGetDay():int
: Get dayGetHour():int
: Get hourGetMinute():int
: Get minuteGetSecond():int
: Get second
Math Functions
sin(val:float):float
: Returns sine of xcos(val:float):float
: Returns cosine of xtan(val:float):float
: Returns tangent of xPI : float
: PI numberfmax(x:float,y:float):float
: Returns the larger of x and y.fmin(val:float):float
: Returns the smaller of x and y.abs(x:float):float
: Calculates the absolute value of a number.