Go to Post If regolith ever makes a return, I will jump out of a window. - Oblarg [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-02-2014, 21:40
Secretspy97 Secretspy97 is offline
Registered User
FRC #1126
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2009
Location: New York
Posts: 25
Secretspy97 is an unknown quantity at this point
Creating a folder on the cRIO

I am trying to create a folder on the cRIO and then save images from the camera in it.
This is what I have so far:
Code:
private FileConnection photoConfig;
    private final String photoPath = "file://Data/";

try { 
            photoConfig = (FileConnection)Connector.open(photoPath);
            photoConfig.delete();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        
        try {
            photoConfig.create();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
Whenever I run this I get a error saying "directory can not be created".

Can someone please tell me what I am doing wrong.
Thanks!!
__________________
WHAT TIME IS IT?
1126
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi