In Firefox (v19), if I run the following code (with the files created and in their correct places):
Strict
Import mojo
Function Main:Int()
Local s:String = Load("test.txt")
Print s
s = Load("forwards/test.txt")
Print s
s = Load("backwards\test.txt")
Print s
Return 0
End
Function Load:String(file:String)
Local str:String = LoadString(file)
If str = "" Then Print "Error loading file: " + file
Return str
End Firefox can not load the 3rd file due to the backwards slash... Chrome loads it fine. Not sure if you can fix it or maybe hack the file path to change \ to / ?
|