marioantonini Posted September 16, 2013 Posted September 16, 2013 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!
marioantonini Posted September 23, 2013 Author Posted September 23, 2013 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)?
marioantonini Posted September 23, 2013 Author Posted September 23, 2013 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.
Recommended Posts
This topic is 4090 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now