Home > comp > gb > file > load 
 en fr de es it pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Voorgaande  Volgende  Bewerken  Hernoemen  Undo  Search  Administratie  
Handleiding  
Waarschuwing Deze pagina is niet vertaald.  Zie Engelse versie 
File.Load (gb)
STATIC FUNCTION Load ( FileName AS String ) AS String

Loads a file and returns its contents as a string.

This example shows how Load can be used as a easy way to open a text file and display it in a TextArea.

Voorbeeld

PUBLIC SUB ButtonOpen_Click()
  Dialog.Filter = ["*.txt", "Text Files"]
  IF Dialog.OpenFile() THEN RETURN
  TextAreaEdit.Text = File.Load(Dialog.Path)
CATCH
  Message.Info(Error.Text)
END

The changed text could be saved using File.Save method.