Want to open a sequential file

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Want to open a sequential file

Postby saturn_at_sky » Tue Jan 28, 2014 4:17 pm

How can I open a sequential file. The file name is :”init.lsp”
I tried the following alternatives, which not work:

Code: Select all
File file = new File(“init.lsp”);
File file = new File(“./home/lejos/programs/init.lsp”);
User avatar
saturn_at_sky
New User
 
Posts: 21
Joined: Wed Jan 08, 2014 1:55 pm
Location: Germany

Re: Want to open a sequential file

Postby lawrie » Tue Jan 28, 2014 5:04 pm

The first probably won't work as the the menu doesn't change the current directory when it starts a program. It will still be /home/root/lejos/bin//utils.

The second example needs the initial "." removing.
lawrie
leJOS Team Member
 
Posts: 840
Joined: Mon Feb 05, 2007 1:27 pm

Re: Want to open a sequential file

Postby saturn_at_sky » Wed Jan 29, 2014 8:54 am

Code: Select all
/home/lejos/programs/init.lsp


works. Thank you!
User avatar
saturn_at_sky
New User
 
Posts: 21
Joined: Wed Jan 08, 2014 1:55 pm
Location: Germany


Return to EV3 Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff