Write Line

Parent Previous Next

Write Line

Function to write a line in the text file and in the end of the text inserts a line break.


Syntax:

Void WriteLine(String text);
Write a text in the file and in the end of the line insert a line break.


Params:

String text: A String parameter containing the text that will be written in the text file.


Example:

In this example, we are trying to open the file "OpenFunction.txt" located in the path "C:\". If the file exists, the user will write a text in the file and in the end of the line.

  


@OpenFileSuccessfully = SVFile.Open("C:\OpenFunction.txt", true);

if(@OpenFileSuccessfully == true )

SVFile.WriteLine("New Text");

else

SVApplications.Output("File not exists");