Skip to content
Mostafa Asgari edited this page Mar 15, 2017 · 3 revisions

In EasyGen you can send generated output to a File or Console(standard output).To do that you can use pre built functions that EasyGen provides for you.

CONSOLE( expression )

display the generated data in the console
parameters :

  1. expression is any valid EasyGen expression

FILE( expression , path )

Writes the generated data to a file.If file already exist, it will throw an exception.
parameters :

  1. expression is any valid EasyGen expression
  2. path the output file path

FILE( expression , path , append )

Writes the generated data to a file.This is another overload of FILE function.You can control the append behavior in this overload.If append is false and file already exist, it will throw an exception.
parameters :

  1. expression is any valid EasyGen expression
  2. path the output file path
  3. append if true, the generated data will be append to the file

SOCKET( expression , host:port )

Send the generated data to a socket.
parameters :

  1. expression is any valid EasyGen expression
  2. host:port is the socket address.For example to send data to localhost on port 9850 you should write localhost:9850

Clone this wiki locally