Actionscript 2 -- write a local file

So I am working on extending a flash kiosk software and I need to be able to write a text file locally. The swf will not be running on a server, but on that local machine so I was wondering how I would do that.  I tried using fileReference.upload but it isnt creating the file.

it looks like fscommand is the way to go.... if i can get it working....

Similar Messages

  • WebUtil dll download error: Unable to write to local file

    Hi,
    Hopefully I'm putting this in the correct forums.
    I'm setting up a Forms application that uses webutils.
    We're running Forms and Reports standalone (10.1.2.3.0) running on Solaris Sparc (64bit) and have just applied patch 7703734.
    As per Oracle Support doc [ID 783937.1], I'm trying to set the download location for the webutil libraries:
    install.syslib.location.client.0 = C:\webutil
    However, I'm gettting the following error message in the Java 6u16 console (repeated for each of the 3 webutil files)
    *2011-Feb-07 12:24:16.988 ERROR>WUC-19 [URLDownload.pullFile()] Unable to write to local file C:\webutil\::dev\d2kwut60.dll. Failed to download URL http://appdev02:7787/forms/webutil/d2kwut60.dll*
    I've done a bit of searching and most of the answer's I've come across refer to Vista or Windows 7 and UAC. Unfortunately the SOE for this app is XP Pro SP3.
    It's probably something simple I'm missing , but would appreciate and pointing in the right direction.
    If you need any more info, let me know.
    Cheers,
    Matt

    Hello
    the problem also appears with windows vista
    i found a solution but it's not a good one
    if you download the files into the java directory
    you can modify the userrights and give the user "everyone" the right 'write' for the bin directory.

  • Process local form and write to local file?

    I've written a form using alot of JavaScript. It is intended to run on a local machine and I need to write the information to a local file. Is this easily done using javascript to process the form?
    If so, please point me in the right direction.
    Thanks much,
    Mike Rieck

    Ok, so here's another possibility I'm thinking of.
    My need is to have our salesmen fill out the form (quote request) offline, then when connected to the Internet, submit the info via e-mail or posting to an application on our company server.
    Since my form has many questions that will never get answered, depending on the path the user takes, I could create a smaller form by opening a new window with javascript and writing the pertinent values of form 1 as the default values for the new form. Then ask the user to save the new form to their hardrive and either e-mail it or post it, at a time when they are connected to the Internet.
    To add additional functionality to this process, I want to take the form and process it into a formal RTF formated quote.
    From what you've explained, I can either write a Java application to process the form on our server, or I could ask the salesman to e-mail the 2nd form as an attachment, and I could write another program in any language to write the RTF file on the local machine of the e-mail recipient.
    If I choose the posting option, what are the possibilities of getting the RTF file to someone inside the same office as the server, without the salesman having to download the RTF file and then e-mailing it? Also, how difficult does this sound for someone new to Java?

  • Is there a way to allow flex to write to local files?

    Hi eveybody?
    I'm working at a little game in flex at the moment, and want to save the highscore and saveGames in a xml-file.
    I read that this is forbidden because of the flashplayer sandbox restrictions. There's a work-around, where you save a file on a server, and download it afterwards. But my application is an offline-software, so there's no connection to a webserver.
    Is there really no other way to save (local-) files??
    greets, K

    SharedObject is your solution to store up to 100kb Data! For little data like highscore it s a good solution!
    Check out these two links to learn more:
    http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_3.html
    http://learn.adobe.com/wiki/display/Flex/Shared+Objects

  • Webutil error WUC-19 Unable to write t local file

    When the user have all permissions on the PC, there is no message.
    But if he have not, he get the WUC-19 message each time
    the Forms load with WEBUTIL.PLL attached.
    In which local(client) directory Webutil try to write ?

    Francois,
    WebUtil writes to the \bin directory of the Jinitiator installation.
    Frank

  • Problem During reading and write local file

    Hi ,
    I had written a small applet program, it have function �readNwriteFile()� it read/write the local file
    This function works fine when I call it from start () function.
    But whenever I was trying to call this function from java script it gave me this exception.
    �java.security.AccessControlException: access denied (java.io.FilePermission C:\temp_jar\DSC01692.JPG read)�.
    Java script is working fine, I can access any another function from script The problem is some related to access
    I had set the permission in my policy file .this the permission that I had set.
    grant codebase "file:c:\temp_jar"{
    permission java.io.FilePermission "<< ALLFILES >> , "read ,write ,delete ,execute ";
    Java code.
    package com.ravindra;
    import javax.swing.*;
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    public class MialTest extends JApplet{
         public void init() {
         public void start(){
              readNwriteFile(); /// When I call this function from here It is working
         public byte [] readNwriteFile(){
              try {
                   File localfile = null;
                   localfile = new File("C:\\temp_jar\\DSC01692.JPG");
                   FileInputStream fs = new FileInputStream(localfile);
                   ByteArrayOutputStream bs = new ByteArrayOutputStream() ;
                   int actual_data = (int)fs.read();
                   while(actual_data > -1){
                        bs.write(actual_data);
                        actual_data = (int)fs.read();
                   byte [] final_data = bs.toByteArray();
                   File out_file = new File("C:\\temp_jar\\Ravindra_test.JPG");
                   FileOutputStream out_stream = new FileOutputStream(out_file);
                   out_stream.write(final_data);
                   out_stream.flush();
                   fs.close();
                   bs.close();
                   localfile = null;fs = null; bs = null;
                   return final_data;
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   return null;
    Java Script Code:

    Hi ,
    I had written a small applet program, it have function �readNwriteFile()� it read/write the local file
    This function works fine when I call it from start () function.
    But whenever I was trying to call this function from java script it gave me this exception.
    �java.security.AccessControlException: access denied (java.io.FilePermission C:\temp_jar\DSC01692.JPG read)�.
    Java script is working fine, I can access any another function from script The problem is some related to access
    I had set the permission in my policy file .this the permission that I had set.
    grant codebase "file:c:\temp_jar"{
    permission java.io.FilePermission "<< ALLFILES >> , "read ,write ,delete ,execute ";
    Java code.
    package com.ravindra;
    import javax.swing.*;
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    public class MialTest extends JApplet{
         public void init() {
         public void start(){
              readNwriteFile(); /// When I call this function from here It is working
         public byte [] readNwriteFile(){
              try {
                   File localfile = null;
                   localfile = new File("C:\\temp_jar\\DSC01692.JPG");
                   FileInputStream fs = new FileInputStream(localfile);
                   ByteArrayOutputStream bs = new ByteArrayOutputStream() ;
                   int actual_data = (int)fs.read();
                   while(actual_data > -1){
                        bs.write(actual_data);
                        actual_data = (int)fs.read();
                   byte [] final_data = bs.toByteArray();
                   File out_file = new File("C:\\temp_jar\\Ravindra_test.JPG");
                   FileOutputStream out_stream = new FileOutputStream(out_file);
                   out_stream.write(final_data);
                   out_stream.flush();
                   fs.close();
                   bs.close();
                   localfile = null;fs = null; bs = null;
                   return final_data;
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   return null;
    Java Script Code:

  • How to make applet access a local file in intranet?

    I want to have my applet read from and write to a file on the user's PC. This is our company's intranet and security is not a concern so we don't want to go through the complicated certificate procedure.
    Our application server is weblogic. The jsp containing the applet can be accessed at http://10.150.20.100:7001/slfweb/jsp/Home.jsp. According to Core Java (Volume II), I put the following paragragh into java.policy file under jre/1.3.1/lib/security dir of each user's PC, hoping this will grant the permission for the applet to read/write a file in tmp dir:
    grant codeBase "10.150.20.100:7001/slfpweb/" {
    permission java.io.FilePermission "C:\\tmp\\*", "read, write";
    However, it does not work. Can someone tell me what is the simplest way to allow an applet to read/write a local file in intranet system?
    Thank you very much!
    Ming

    I guess the reason you're still running into permission problem is that you have not addressed the required settings in the browser(s) that you're using.
    On everyone's PC, the following must be done:
    1) on IE, click Tools | Internet Options | Security . Under Trusted Sites, add your server's IP address. Under Local Intranet, reset it to Medium or Low and check to see if any of the relavant settings require attention (note that a Java Applet is equivalent to an ActiveX object in IE) . Finally, go into Java Custom Settings and make the appropriate changes.
    2) on NN, to access local files, you can enable Codebase Principals by adding the following line to the user's pref.js file (look for it where NN is installed -- usually under C:\Program Files):
    user_pref("signed.applets.codebase_principal_support", true);
    I have also read Core Java and found that the authors have a way of over-simplifying everything and failure to adequately describe other factors that may potentially affect what they're describing.
    V.V.
    PS: Signing an applet with a self-signed certificate is not all that difficult. Here is a link to my file i/o applet that contains pertinent info that you might want to look into:
    http://home.attbi.com/~aokabc/FileIO/FileIOdemo.htm

  • Access to local file system for desktop application

    As a .NET and VBA developer/user, I have found Flash to be a
    great RAD development solution for certain desktop app. projects...
    if only actionscript could access the local file system and talk to
    local (preferably non-XML) data-sources!
    I'm not familiar with the latest version of Flash CS3 &
    Actionscript 3.0
    Is there any reliable way Flash CS3 can be programmed to access
    the user's local file system - that is, as a stand-alone desktop
    application????

    Thanks for the response.
    I hope Adobe catches a clue ... with Microsoft's Windows
    Presentation Framework and the new ability of easily implementing
    Flash-like animation on .NET apps, Adobe is going to have to get
    busy. Stand-alone desktop apps still rule (as opposed to web-based)
    in the business world, and they are driven by data. If Flash was
    capable of easily talking to local data-sources (Access, Excel,
    Text etc.), it could significantly increase its adoption as a
    widely used business RAD tool. The Flash IDE is great and rivals
    any Microsoft RAD IDE + users love the slick Flash GUIs.

  • How to write the code to send the report output to the local file.

    dear all,
    how to write the code to send the report output to the local file.
    Thanks & Regards,
    Jyothi.

    Hi,
    Try this , it will display report and download the file as well. Just vhange the path and execute
    TYPE-POOLS : SLIS.
    DATA : IT_SCARR TYPE TABLE OF SCARR,
           IT_FCAT  TYPE SLIS_T_FIELDCAT_ALV.
    SELECT *
    FROM SCARR
    INTO TABLE IT_SCARR.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    *   I_PROGRAM_NAME               =
    *   I_INTERNAL_TABNAME           =
        I_STRUCTURE_NAME             = 'SCARR'
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
    *   I_INCLNAME                   =
    *   I_BYPASSING_BUFFER           =
    *   I_BUFFER_ACTIVE              =
      CHANGING
        CT_FIELDCAT                  = IT_FCAT
    * EXCEPTIONS
    *   INCONSISTENT_INTERFACE       = 1
    *   PROGRAM_ERROR                = 2
    *   OTHERS                       = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
    *   I_CALLBACK_PROGRAM             = ' '
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   I_STRUCTURE_NAME               =
    *   IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FCAT
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
    *   IT_SORT                        =
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    *   IR_SALV_LIST_ADAPTER           =
    *   IT_EXCEPT_QINFO                =
    *   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = IT_SCARR
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
    *    BIN_FILESIZE              =
        FILENAME                  = 'C:\Documents and Settings\sap\Desktop\Hi.xls' " Change path
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      CHANGING
        DATA_TAB                  = IT_SCARR
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'C:\Documents and Settings\sap\Desktop\Hi.xls' "Change path
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *    OPERATION              = 'OPEN'
    *  EXCEPTIONS
    *    CNTL_ERROR             = 1
    *    ERROR_NO_GUI           = 2
    *    BAD_PARAMETER          = 3
    *    FILE_NOT_FOUND         = 4
    *    PATH_NOT_FOUND         = 5
    *    FILE_EXTENSION_UNKNOWN = 6
    *    ERROR_EXECUTE_FAILED   = 7
    *    SYNCHRONOUS_FAILED     = 8
    *    NOT_SUPPORTED_BY_GUI   = 9
    *    others                 = 10
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Make my Program read/write to a local file

    Hello,
    I'm new to java but I have a workable program. I am trying to make the program read/write to a file. Right now all of my information is stored temp. so when my program crashes all of the info is lost. So if I could have it read/write to a local file then the information wouldn't get lost. Can someone please help me with this?
    Thanks

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Java Applet: choose, read and write local file

    Can some body please help in writing a Java Applet with the following features:
    1. FileChooser button to select a local text file
    2. Load button
    3. Read the file line by line, process it and write into a text file.

    AnilK wrote: Thank you very much.
    Those are just empty words. You can show your thanks in ways that are more useful both to me and you.
    To better show your thanks you might..
    1) Stop treating me as though I were your servant. In a conversation, you might ask a question that I try to answer. As part of my answer, I might need to ask you some questions. A question is a sentence followed by '?'. I did ask you some questions. There are four questions I asked in my first reply. Please answer my questions so I can provide you the best advice.
    2) Do not ignore things I say. (see below*)
    AnilK wrote: However, I still have a problem where the applet can not write a local text file.
    * That is probably because you ignored what I mentioned about digitally signing the applet. If you do not understand anything I write, please do a search and if that does not help you to understand it, ask me what I mean.
    AnilK wrote: Can some body please help me out.
    I was happy to help, but my enthusiasm is dropping quickly. Unless you can manage to improve your replies, I will not help further.
    I will supply some more tips before I finish this message and wait to see your reply, to decide whether I will help further.
    1) If you use 'code' delimiters, the Java code will be colored nicely for people to read. Here is an example (e.g.).
    } catch (Exception e) {
    ret = "problem found. Please reload.";
    return ret;
    2) I had a point here about indenting code, but when I went to reply, the code was indented, which makes me think that using code delimiters would also fix the problem where the code looks as if it has no indentation.
    3) It is 'best practice' (unless you are an expert and can justify otherwise) to dump every stacktrace to find out what really happened. e.g.
      } catch (Exception e) {
        // Very important!  Find out why it failed!
        e.printStackTrace();
        // now go on to do the other things..
        ret = "problem found. Please reload.";
      return ret;
    } 4) When you get a stacktrace, copy/paste at least the first few lines into the message. If my guess about the cause of the problem is correct, the word 'security' will appear somewhere in the stacktrace.
    5) To encourage people to help, post compilable examples, rather than code snippets.
    <http://homepage1.nifty.com/algafield/sscce.html>
    By the way - congratulations on getting as far as you have. You have surprised me that you got so far already. Improve on the other things I mentioned, and I would be happy to help further.

  • How to get access to the local file system when running with Web Start

    I'm trying to create a JavaFX app that reads and writes image files to the local file system. Unfortunately, when I run it using the JNLP file that NetBeans generates, I get access permission errors when I try to create an Image object from a .png file.
    Is there any way to make this work in Netbeans? I assume I need to sign the jar or something? I tried turning "Enable Web Start" on in the application settings, and "self-sign by generated key", but that made it so the app wouldn't launch at all using the JNLP file.

    Same as usual as with any other web start app : sign the app or modify the policies of the local JRE. Better sign the app with a temp certificate.
    As for the 2nd error (signed app does not launch), I have no idea as I haven't tried using JWS with FX 2.0 yet. Try to activate console and loggin in Java's control panel options (in W7, JWS logs are in c:\users\<userid>\appdata\LocalLow\Sun\Java\Deployment\log) and see if anything appear here.
    Anyway JWS errors are notoriously not easy to figure out and the whole technology in itself is temperamental. Find the tool named JaNeLA on the web it will help you analyze syntax error in your JNLP (though it is not aware of the new syntax introduced for FX 2.0 and may produce lots of errors on those) and head to the JWS forum (Java Web Start & JNLP Andrew Thompson who dwells over there is the author of JaNeLA).

  • Open a Local file from JSP

    Hi All,
    I want to access a local file from a JSP. On click of the link the local file should open. The location of the local file is
    O:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.doc
    and the hyper link on the JSP shows
    file:///O:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.doc
    somehow the file does not open from the JSP page but it opens from the browser if I type
    'file:///O:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.doc' in the address bar.
    Can anybody please help.
    regards,
    Shardul.

    if you'd like to show the real path to the user, use simply an ftp server !
    however, if you prefer a secure solution, so use a servlet:
    example:
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SendWord extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get the 'file' parameter
        String fileName = (String) request.getParameter("file");
        if (fileName == null || fileName.equals(""))
          throw new ServletException(
              "Invalid or non-existent file parameter in SendWord servlet.");
        // add the .doc suffix if it doesn't already exist
        if (fileName.indexOf(".doc") == -1)
          fileName = fileName + ".doc";
        String wordDir = getServletContext().getInitParameter("word-dir");
        if (wordDir == null || wordDir.equals(""))
          throw new ServletException(
              "Invalid or non-existent wordDir context-param.");
        ServletOutputStream stream = null;
        BufferedInputStream buf = null;
        try {
          stream = response.getOutputStream();
          File doc = new File(wordDir + "/" + fileName);
          response.setContentType("application/msword");
          response.addHeader("Content-Disposition", "attachment; filename="
              + fileName);
          response.setContentLength((int) doc.length());
          FileInputStream input = new FileInputStream(doc);
          buf = new BufferedInputStream(input);
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            stream.write(readBytes);
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (stream != null)
            stream.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    }hope that helps

  • How to copy a page webpage into a local file (for eg C:\\file.doc)

    Hello all,
    i wrote a programm code which can get my system information (date,tomcatversion,jdk version, server name and version and ...)
    if navigate to the url (on my localserver) htt://localhost/pp/version.jsp i would see all this in formation but how can i copy them into to a local file?
    i can create the file with: FileWriter fw = new FileWriter("C:\\file.doc");
    and copy this information line by line with:
    fw.write("Application server name and version:");
    fw.write(application.getServerInfo());
    fw.write("\n");
    But if i write fw.write(new java.util.Date()) // for the system date/time it doesn't work also fw.write(java.util.Date()) ) or fw.write(Date())
    or Date da = Date() and fw.write(da) no result...
    import are:
    <%@page import="java.io.*" %>
    <%@page import="java.util.*" %>
    please help....

    thanks !! what does this means ? It is possible or no yes yes i need i syntax or an example ... i'm new in java :)

  • Using Local File instead of SQL Databas

    Some time ago I developed an application that could perform certain operations with the help of an SQL Database. It was just some few simple functions such as adding/removing and fetching data from the server.
    The thing is that the one that I was delivering to changed his mind and now doesn�t want an SQL Server involved anymore but instead a local file. I structured the application well so I can easily change it because I have a special class handling just the SQL Connection, as good OO suggests.
    The thing that I was wondering about is if there is any magical class or package I could use.
    What I have come to so for is that I would just write the file to the drive containing the data in some effective way and then when the application starts just read the data files into the memory.
    I am thankful any help

    Check out hsql on the sourceforge site. It's a java database engine that can be used to query local files as you say. JDBC compliant, so you can just plug in a different driver. I've never used it, though, so that's all the help I'll be. :-)

Maybe you are looking for

  • Application not working in windows 8

    Hello Sir, I have Lenovo Z500 laptop recenty brought. When i Run any application in windows 8 It will error as shown in below 1st image. So how to solve this error. I troubleshoot that program. but still it is not working. Hope this will solved out s

  • When will my Google TV work?

    I have an AV unit and a Google TV.  They don't work together with the Fios STB.  My tv is wall mounted and everything is controlled by the AV thingy so there's no way I can hook it up the workaround way that is shows in the manual.  I'm reading here

  • Screen resolution​s

    I am having trouble with need for speed hot pursuit 2010. I have hp 2009 and my screen resolutions are 800 x 600 and my graphics adapter is ATI Radeon HD 4200. I want to enhance my screen resolutions to 1600 x 900 but the game lags terribly how can I

  • Lost settings and preferences on startup

    I had a very unusual problem this AM. On computer start up all my FF settings, preferences, tool bar settings, homepage were lost and FF reverted back to it's default settings. My bookmarks were still there. I've never seen that before. I did a syste

  • ISE - client always noncompliant

    The client machine that I am testing with is authenticating fine, but I am not able to get it compliant with posturing policies. The client machine is windows 7, running nac agent 4.9.0.42 and compliance module 3.5.4.1, against ISE 1.1.1 I have confi