In order for you to use this program/files you need to clone this project
- Terminal
- Java
-
Open a Terminal navigate to the folder where you can put the files.
-
Git clone $URL
-
Change directory to the folder with the
keyValueDB/src
here you will findMain.java
-
Write
javac Main.java
to compile the code. -
Now you can start writing and reading from the file.
-
how to write, the command is
java Main $key $value
. Examplejava Main 1 hello
-
How to read, the command is
java Main $key
. Examplejava Main 1
this will returnhello
You will get an error if you are using æøå or trying to read a key which is not stored in the database.