From 27a842839d8709b10a5468324cf279d5a8aa5096 Mon Sep 17 00:00:00 2001 From: raghav Date: Fri, 25 Feb 2022 21:41:25 +0530 Subject: [PATCH] Updated README.md --- .idea/sonarlint/issuestore/index.pb | 2 -- README.md | 31 ++++++++++++++++++----------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb index 564f0a0..d80ceb7 100644 --- a/.idea/sonarlint/issuestore/index.pb +++ b/.idea/sonarlint/issuestore/index.pb @@ -14,8 +14,6 @@ D .src/com/mercurys/textmessaging/TextClient.java,f/5/f5a7932de3e52c2ab6f9c834dd4304ba7865c4ee ^ .src/com/mercurys/textmessaging/TextServer.java,f/3/f32af2342c1688883cf4c3814cde7b952a89aad7 -9 - README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d b 2src/com/mercurys/handlers/ClientSocketHandler.java,a/9/a98985e915caa5e3e7e0fc8d532eeedbc9132970 b diff --git a/README.md b/README.md index 82192b7..f32ffef 100644 --- a/README.md +++ b/README.md @@ -41,28 +41,35 @@ connection is active. ***To send a message*** -To send a text message, you just need to type the message and press enter. +Simply type the message and press enter. -To send an image, the process is slightly different. First, make sure you have the image downloaded on your computer. -Then, go to the image and copy its -"absolute path". +***To send a file*** + +To send any media file, make sure you have the file downloaded on your computer. Then, go to the image and copy its " +absolute path". An absolute file path is the complete and unique "name" of a file. More technically, it is the string of characters used to uniquely identify a file in a device's directory structure. For example: * On Windows - `C:\Pictures\Nature\SummerLeaves.jpg` -* On Linux - `/home/xyz/Pictures/Cats.jpg` -* On macOS - `/Users/xyz/Pictures/Pluto.png` +* On Linux - `/home/xyz/Documents/Sustainability_Report.pdf` +* On macOS - `/Users/xyz/Documents/ProjectDeadlineNotice.pdf` + +After copying the absolute path, go to the console and use the following format to send the file: + +`/ ` + +Currently, the accepted file types are: -After copying the absolute path [including the name of the image itself], go to the console and use the following format -to send the image: +* `image` -> for image files +* `pdf` -> for pdf files -`/image [absolute file path]` +The console will display a confirmatory message that the file has been sent if all goes well. -The console will display a confirmatory message that the image has been sent if all goes well. +The console will also display the path of the file downloaded. -Once you have finished with your talks and wish to close the connection, both of the users have to enter "-x-" -[without the double quotes] to close the connection and stop the program. +Once you have finished with your talks and wish to close the connection, both the users must +enter `-x-`[without the double quotes] to stop the program. #### Why Am I Doing This?