Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Imaginary file"

Featured Replies

I am playing around with the File class, and I am trying to create files immediately in a container, without being created on the hard disk (just as an experiment, don't have a real goal yet:) )

I wrote the following lines of code:


def myFile = new File ( "test.txt" );

myFile << "First Line Of text";

return myFile;





When I run this 2 times the result is a text file in my container containing two times the line "First Line Of Text". When a run it three times it contains it three etc etc. (I guess you all get the picture)



I know that the command "<<" will append the text if the file already exists, so this means to me that somewhere in the memory the variable "myFile" is still alive...



So I created the following lines of code:





def myFile = new File ( "test.txt" );

myFile << "First Line Of text";

def myResult = myFile;

myFile = null;

return myResult;

But I have the same result. I restarted FileMaker, used the SMReset function, but it is always the same behavior.

What is going on in this piece of code?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.