Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda