Files and APIs

Last updated

What is Files and APIs?

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
  • 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

Free resources to learn Files and APIs

Files and APIs: common questions

Can I learn Files and APIs in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Files and APIs in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Files and APIs tutorial for beginners?

It is lesson 56 of 86 in the free Java roadmap, in stage 14, File Operations. If you are new to Java, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me