ReadBuffer
Function to read the entire file in memory.
Syntax:
String ReadBuffer():
The function returns the string the entire file stored in memory.
Return:
String: returns the string the entire file stored 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 complete file with the ReadBuffer function and print the result.
@OpenFileSuccessfully = SVFile.Open("C:\OpenFunction.txt", true); if(@OpenFileSuccessfully == true ) string buffer = SVFile.ReadBuffer(); SVApplications.Output(buffer); else SVApplications.Output("File not exists");
|