mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
Update 106-files-and-apis.md (#5943)
added newer Files.* API with articles
This commit is contained in:
@@ -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.
|
||||
|
||||
- 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
|
||||
- `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
|
||||
- `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:
|
||||
|
||||
@@ -11,3 +13,5 @@ Visit the following resources to learn more:
|
||||
- [@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@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/)
|
||||
|
||||
Reference in New Issue
Block a user