programming guide | reference guide | file types | tutorials | examples

FGL Tutorials

Hello World
Working with the Console
Active Pages
Variables & Data
Control Structures
Functions & Procedures
Objects & Classes
Low-level File Support
Database Files
Error Handling
Hello World

FGL can output content to a variety of destinations, the most prevalent being console, interpreter, web page, and file. Outputting content is accomplished either by using one of the FGL output functions such as print(), printf(), println(), or sprintf() within a program or the interpretor, or by using the insertion operator ("!") within an active page.

Output 'Hello World' in FGL:

    // output 'hello world' to the console
    println( "Hello World" )

    // write 'hello world' to a file
    fname.writeToFile( "Hello World" )
'Hello World' in the Interpretor:
'Hello World' in an Active Page (web page):


    <!-- inline the text using the FGL Insertion operator -->
    <p>The question is: <[ ! "Hello World" ]>, how are you?



Copyright © 2020-2023 by the FGL Foundation, All Rights Reserved

117 ms