Skip to main content
fomatting
Source Link
Jonas Czech
  • 12.4k
  • 7
  • 46
  • 67

oneOne line only !! pathpath and lineline are Strings

import java.nio.file.Files; import java.nio.file.Paths;

Files.write(Paths.get(path), lines.getBytes());

import java.nio.file.Files;
import java.nio.file.Paths;

Files.write(Paths.get(path), lines.getBytes());

one line only !! path and line are Strings

import java.nio.file.Files; import java.nio.file.Paths;

Files.write(Paths.get(path), lines.getBytes());

One line only ! path and line are Strings

import java.nio.file.Files;
import java.nio.file.Paths;

Files.write(Paths.get(path), lines.getBytes());
Source Link
Ran Adler
  • 3.8k
  • 32
  • 28

one line only !! path and line are Strings

import java.nio.file.Files; import java.nio.file.Paths;

Files.write(Paths.get(path), lines.getBytes());