|
@ -8,11 +8,11 @@ public class HolaFicheroPermisos { |
|
|
|
|
|
|
|
|
public static void main(String[] args) throws IOException |
|
|
public static void main(String[] args) throws IOException |
|
|
{ |
|
|
{ |
|
|
// creating a file instance |
|
|
|
|
|
|
|
|
// crear el file |
|
|
File file1 = new File("C:\\Users\\kevin\\Documents\\workspace-spring-tool-suite-4-4.16.0.RELEASE\\CreoFicheroWindows.txt"); |
|
|
File file1 = new File("C:\\Users\\kevin\\Documents\\workspace-spring-tool-suite-4-4.16.0.RELEASE\\CreoFicheroWindows.txt"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// check if the file exists |
|
|
|
|
|
|
|
|
// mira si existe |
|
|
boolean exists = file1.exists(); |
|
|
boolean exists = file1.exists(); |
|
|
if(exists == true) |
|
|
if(exists == true) |
|
|
{ |
|
|
{ |
|
|