September 16, 201312 yr 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!
September 23, 201312 yr 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)?
September 23, 201312 yr 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