Update 106-files-and-apis.md (#5943)

added newer Files.* API with articles
pull/5947/head
Leni Kirilov 5 months ago committed by GitHub
parent 393eb6c87d
commit 212be69582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/data/roadmaps/java/content/100-java-fundamentals/106-files-and-apis.md

@ -2,8 +2,10 @@
Learn how to work with files i.e., reading, writing and deleting, files and folders, etc. Also, learn how to make API calls, parse the incoming response, and so on. Learn how to work with files i.e., reading, writing and deleting, files and folders, etc. Also, learn how to make API calls, parse the incoming response, and so on.
- FileWriter - this class is useful to create a file by writing characters into it - `FileWriter` - this class is useful to create a file by writing characters into it
- FileReader - this class is useful to read data in form of characters from file - `FileReader` - this class is useful to read data in form of characters from file
- `Files.lines(Paths.get("file.txt")))` - processing the files as a stream. Since Java 8
- `Files.readString / Files.writeString` - reads the whole file and puts it into a string - since Java 11
Visit the following resources to learn more: Visit the following resources to learn more:
@ -11,3 +13,5 @@ Visit the following resources to learn more:
- [@article@Java File Class](https://www.javatpoint.com/java-file-class) - [@article@Java File Class](https://www.javatpoint.com/java-file-class)
- [@article@Java HttpURLConnection Example - Java HTTP Request GET, POST](https://www.digitalocean.com/community/tutorials/java-httpurlconnection-example-java-http-request-get-post) - [@article@Java HttpURLConnection Example - Java HTTP Request GET, POST](https://www.digitalocean.com/community/tutorials/java-httpurlconnection-example-java-http-request-get-post)
- [@article@5 ways to make HTTP requests in Java](https://www.twilio.com/blog/5-ways-to-make-http-requests-in-java) - [@article@5 ways to make HTTP requests in Java](https://www.twilio.com/blog/5-ways-to-make-http-requests-in-java)
- [@article@Read a file line by line in Java](https://mkyong.com/java8/java-8-stream-read-a-file-line-by-line/)
- [@article@Various ways to read a file to String in Java](https://howtodoinjava.com/java/io/java-read-file-to-string-examples/)

Loading…
Cancel
Save