Do we actually need to provide correct file separator in java.io.File path expression? In other words, does it make any difference to write path + File.separator + fileName instead of path + "/" + fileName for any OS?
Do we actually need to provide correct file separator in java.io.File path expression? In
Share
Some people might say technically yes, but in practice since windows works with either \ or /, just use unix file separators and you’ll be fine.