Jump to content

Does Scanner class work with Lua?


quadrinka4

Recommended Posts

Hi, I have yet another question in modding. 

I am trying to use the Scanner class to read a text file from the computer and print it on the player's screen. For example, 

 

Scanner keyboard = new Scanner(new File("C:\\Users\\username\\Desktop\\test.txt"));

 

and then system.out.print("");

 

is there a way to do this from Lua as well?

 

Edited by quadrinka4
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...