ReadLine
Function to read the line of file in memory.
Syntax:
String ReadLine(int line);
Parameters:
Int line: A int parameter containing the line of file in memory.
Return:
String: The function returns the string in the line of file in memory.
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 read the first line of the file with the function ReadLine and print the result.
@OpenFileSuccessfully = SVFile.Open("C:\OpenFunction.txt", true); if(@OpenFileSuccessfully == true ) string firstLine = SVFile.ReadLine(1); SVApplications.Output(firstLine); else SVApplications.Output("File not exists");
|