Package org.jpass.utils
Class WriteFile
java.lang.Object
org.jpass.utils.WriteFile
This class is used to write into a file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopy a file and save it as .copy file - used as a helper in append methodstatic voidCopy a filestatic voidCopy a filestatic voidCreate a filestatic voidRemoveFile(String filePath) Remove a filestatic voidWrite into a filestatic voidAppend text into a config file Make copy (.copy file), read from copy and write into original file, replace specific line, delete copy
-
Constructor Details
-
WriteFile
public WriteFile()
-
-
Method Details
-
create
Create a file- Parameters:
filePath- path to the file
-
write
Write into a file- Parameters:
filePath- path to the filetext- text to write into the file
-
write
Append text into a config file Make copy (.copy file), read from copy and write into original file, replace specific line, delete copy- Parameters:
filePath- path to the filetext- text to append into the file
-
CopyFile
Copy a file and save it as .copy file - used as a helper in append method- Parameters:
filePath- path to the file
-
CopyFile
Copy a file- Parameters:
filePath- String path to the filenewFilePath- String path to the new file
-
CopyFile
Copy a file- Parameters:
filePath- Path to the filenewFilePath- String path to the new file
-
RemoveFile
Remove a file- Parameters:
filePath- path to the file
-