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.

Featured Replies

Working on Windows 7, FMP 12, I have FM and ScriptMaster both on disk C:, I have a filemaker file on disk D:

When I give Read File Contents a path to a text (.txt) file on the Desktop ( C:) or any other path on disk C: it works fine, however, if I use a path on D:, even relative to the filemaker file (again on D:) I get the following error:

 

java.io.FileNotFoundException: file:myFile.txt (The system cannot find the file specified).

 

Also got the error with file:myFolder/myFile.txt (relative to the filemaker file) and with "file:/D:/myFolder/myFile.txt"

 

Any help would be really appreciated!

  • Author

Solved.

Substituting forward slashes to backslashes.

 

Something else came up. Is there a way to select the encoding in which to read the filePath for ReadFileContents(filePath)?

  • Author

Encoding solved (partially).

Saved the text with encode Base64 and then just used decodeBase64toText.

 

I say partially because that only works if I create the filePath as a Base64 text.

 

Would still like to know how to specify a character encoding when using ReadFileContents(filePath) when "filePath" is not generated with Base64 encoding.

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.