summaryrefslogtreecommitdiff
path: root/3544/CH6/EX6.55/Ex6_55.sce
diff options
context:
space:
mode:
Diffstat (limited to '3544/CH6/EX6.55/Ex6_55.sce')
-rw-r--r--3544/CH6/EX6.55/Ex6_55.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3544/CH6/EX6.55/Ex6_55.sce b/3544/CH6/EX6.55/Ex6_55.sce
new file mode 100644
index 000000000..d04aae0ba
--- /dev/null
+++ b/3544/CH6/EX6.55/Ex6_55.sce
@@ -0,0 +1,21 @@
+
+//Base-64 encoding mapping table
+
+disp("Base-64 encoding mapping table")
+
+[u,t,n] = file()
+n = strcat(n)
+file_name = basename(n)+fileext(n)
+file_name = strcat(file_name)
+ind=strindex(n,file_name)
+path = part(n,1:ind-1)
+chdir(path)
+
+//Get function to create encoding table
+exec("Chapter_6.sci",-1)
+
+enc = encoding_table()
+
+for i=0:63
+ printf("%d - %c\n",i,ascii(enc(i+1)))
+end