Is there any input / output to the local device?

102 Views Asked by At

Are there external objects or functions that can be read and written to the local device as an alternative to ClientStorage in an online application? I want to use it as an alternative to WebSession.

1

There are 1 best solutions below

0
Miura Masayuki On

Why don't you using "file" datatype? this is just my opinion.

Event 'write'
    //&tempstring is Character(999), &tempstrings is  Character(999) and collection
    &file.Source = Directory.TemporaryFilesPath + &file.Separator + "myFile.txt"
    &tempstrings.Clear()
    &tempstrings.Add(&tempstring)
    &file.AppendAllLines(&tempstrings)
Endevent

Event 'read'
    &file.Source = Directory.TemporaryFilesPath + &file.Separator + "myFile.txt"
    &tempstring = &file.ReadAllText()

Endevent