Today as a sunny day a friend of mine asked me to draw a table of wishes I stayed without any words nor ideas in brain.

What is this table and what should represent. After querying Google I understood that my uniq sorted and thrived table should be as projected above.

--

--

import Foundation

let fsFile = “test1.txt” //In this is the file. we will read
let fdFile = “test2.txt” //In this is the file. we will write to
if let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first {
let fileFsURL = dir.appendingPathComponent(fsFile)
let fileFdURL = dir.appendingPathComponent(fdFile)

//reading
do {
let str = try String(contentsOf: fileFsURL, encoding: .utf8)
print(str)
}
catch {/* error handling here */}
//writing
do {
try str.write(to: fileFdURL, atomically: false, encoding: .utf8)
}
catch {/* error handling here */}

}

--

--

Create a free tier ec2 instance in amazon, reserve an Elastic IP and assign it to the instance.
Install nginx or whatever other services as like as Kubernetes and When access to the services from internet is needed, for that go to my domain registrar for example godaddy and create a CNAME that point to this Elastic IP. You can also Build a ELB (aws elastic load balancer) in front of nginx web server, then redirect the traffic from ELB to nginx, this way will be more flexable. Finally create a security group, and open stream to HTTPS port or whatever you want to expose.

--

--

Mezgani Ali

Mezgani Ali

27 Followers

Ph.D. student and researcher at (Native LABs, inc). I like technology, reading and my little daughter Ghita. My first program was an Horoscope in Basic in 1993.