Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Read text file in Javascript Rhino

I am writing a code to read a local text file into my No Magic Cameo Systems Modeler. I am using Javascript Rhino for the same. But not getting any viable solution to read the text file.

enter image description here

I used Java's bufferedReader class but then I am getting the following error :

"org.mozilla.javascript.EvaluatorException: missing ; before statement (#25)"

Can anyone assist me in what I am doing wrong. I am fairly new to javascript .

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You're trying to execute Java code, not JavaScript code, so Rhino throws an error because you're not providing it valid JavaScript code

For example File fileR = ...: this is Java code. The JavaScript equivalent is: var fileR = ....

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!