diff --git a/.classpath b/.classpath deleted file mode 100644 index 57bca72..0000000 --- a/.classpath +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index a9ac1fd..0000000 --- a/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - hello_world - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8c9943d..0000000 --- a/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,14 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=17 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=17 diff --git a/Imgs/1.png b/Imgs/1.png deleted file mode 100644 index 02ce43c..0000000 Binary files a/Imgs/1.png and /dev/null differ diff --git a/Imgs/2.png b/Imgs/2.png deleted file mode 100644 index c91de7c..0000000 Binary files a/Imgs/2.png and /dev/null differ diff --git a/Imgs/aarti.txt b/Imgs/aarti.txt deleted file mode 100644 index 8b13789..0000000 --- a/Imgs/aarti.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/README.md b/README.md index 76d6712..09651aa 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,2 @@ -## JAVA ASSIGNMENT - 1 -# Byte-Array-to-File +# byte-array-to-file Input a file using byte array, store it on local system. - -## SnapShots -## 1 -![web](https://github.com/shinchancode/byte-array-to-file/blob/master/Imgs/1.png) -## 2 -![web](https://github.com/shinchancode/byte-array-to-file/blob/master/Imgs/2.png) - -## RESOURCES -# Core JAVA, Collections -
https://www.programiz.com/java-programming
- -# JAVA Generic Project Creation with IDE -
https://www.programiz.com/java-programming
- -# Git tutorial -
https://www.vogella.com/tutorials/Git/article.html
- -# MVC -
https://www.edureka.co/blog/mvc-architecture-in-java/
- -# API Basics -
https://happycoding.io/tutorials/java-server/rest-api
- -### Connect with me: - -[codeSTACKr.com][website] -[codeSTACKr | Twitter][twitter] -[codeSTACKr | LinkedIn][linkedin] -[codeSTACKr | Instagram][instagram] - -
- -[website]: https://shinchancode.github.io/3d-react-portfolio/ -[twitter]: https://twitter.com/CodeShinchan -[instagram]: https://www.instagram.com/aarti.rathiii -[linkedin]: https://www.linkedin.com/in/aarti-rathi-a6031814b/ - diff --git a/bin/hello_world/byte_file.class b/bin/hello_world/byte_file.class deleted file mode 100644 index 24888a1..0000000 Binary files a/bin/hello_world/byte_file.class and /dev/null differ diff --git a/sample.txt b/sample.txt deleted file mode 100644 index f1e27f9..0000000 --- a/sample.txt +++ /dev/null @@ -1 +0,0 @@ -Sample text for byte array \ No newline at end of file diff --git a/src/hello_world/byte_file.java b/src/hello_world/byte_file.java deleted file mode 100644 index 602aca4..0000000 --- a/src/hello_world/byte_file.java +++ /dev/null @@ -1,25 +0,0 @@ -package hello_world; -import java.io.*; -import java.nio.file.Files; - -public class byte_file { - public static void byte_file(byte[] data, File destination) { - try(FileOutputStream fos = new FileOutputStream(destination)){ - fos.write(data); - fos.close(); - } - catch(Exception e) { - System.out.println("There is an error"); - } - } - public static void main(String[] args) throws IOException { - String someText = "Sample text for byte array"; - byte[] data = someText.getBytes(); - File destination = new File("sample.txt"); - Files.write(destination.toPath(), data); - - System.out.println("Input a file using byte array, store it on local system."); - System.out.println("Operation Completed !! "); - } - -}