summaryrefslogtreecommitdiff
path: root/3544/CH6/EX6.55/Ex6_55.sce
blob: d04aae0baf4698a249fd3bd9a43a49a2222cc909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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