Multiple save options

Hi. I came up with a simple text file saving kind of a logic. But I want to enable it to let multiple saves such that each time it is saved, the information in the previous file remains intact. Can someone help me to modify the program? Thanks alot !
import java.io.*;
public class save {
     String a;
     String b;
     int c;
     int d;
     int e;
     int f;
     int g;
     int h;
     public save(String a, int b) throws IOException {
          this.a = a;
          this.b = b;
          File outputFile = new File("game1.txt");
          FileOutputStream out = new FileOutputStream(outputFile);
          PrintStream fileOutput = new PrintStream(out);
          fileOutput.println(a + ";" + Integer.toString(b) + ";");
          out.close();
}

oops sorry. a little mistake here..
import java.io.*;
public class save {
     String a;
     int b;
     public save(String a, int b) throws IOException {
          this.a = a;
          this.b = b;
          File outputFile = new File("game1.txt");
          FileOutputStream out = new FileOutputStream(outputFile);
          PrintStream fileOutput = new PrintStream(out);
          fileOutput.println(a + ";" + Integer.toString(b) + ";");
          out.close();
}

Similar Messages

  • I am no longer able to sync multiple photo albums/folders on my iphone. I use to be able to sync many folders and now itunes only gives the option of 1 folder. How do I get back to the multiple folder option?

    first time to the discussion forum. Like I stated in the title, I use to be able to have all my photo albums sync to my iphone. I did something and now it only allows me to "sync photos from..." and it only allows me to chose from 1 of my folders and not pick multiple folders from my photo library. does anyone know how to get back to the multiple folder option? I'm sure its simple since I changed this so easily when trying to add a single folder to my library.

    Firefox now always stores the old session, and you can access it by going to the History menu and selecting "Restore Previous Session"
    If you want Firefox to display the message to save the session, it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs, an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • HOW TO DISABLE THE SAVEAS OPTION OF A BROWSER?

    Hi all,
    Nice to be back again folks.....
    Well I need to develop an Applet (perhaps even a swing) which when loaded by any browser would disable the SaveAs option of the browser's File menu.
    I tried using the Frame class of java.awt package, the code is:
    import java.awt.*;
    import java.applet.*;
    public class WinAppl extends Applet
    int mc;
    String str="NO OF MENUS: ";
    Font fnt=new Font("Arial",Font.BOLD,12);
    MenuBar mb;
    Frame frame=new Frame("SNODX");
    Window window;
    public void init()
    frame.setBackground(Color.red);
    frame.setForeground(Color.black);
    this.setFont(fnt);
    mb=frame.getMenuBar();
    if(mb!=null)
    mc=mb.getMenuCount();
    str+=mc;
    else
    str+="ZERO";
    public void paint(Graphics g)
    g.drawString(str,50,50);
    but when this applet is loaded ALL the menus of the browser disappear .i.e when this frame applet is loaded by the browser only the title bar of the browser and a red colored window appear, no menus. I dont want all the menus to be hidden, just the SaveAs option of Browser's File Menu to be disabled.
    Thanks in advance.
    True to my nature I am posting this question in some of the other Java forums as well. And as usual sorry for the multiple postings.
    snodx

    Applets usually have absolutely no control over the browser they are running in (with the exception of loading other web pages and other very high level stuff). You won't be able to write an applet that disables entries in the menu bar. And even if you could it wouldn't really help you because most browsers write everything they download to disc (to the cache) where it can be recovered by anybode.
    Last but not least: there are lots of tools for mirroring web sites that will allow users to download and save anything that is accessible for browsers.
    However, you may be able to disable the menu bar and perhaps even change entries in some browsers like ie by activeX controls or javascript. Still this is not a very friendly way for a website to behave...

  • Do CS5 or CS6 include a save option save without artboard?

    Hi All,
    I am currently using CS4. Is there an eps save option in CS5 or CS6 that such as save with artboard (boolean).  The CS4 interface allows you to save without the artboard.  Now I as a final step before my save code I have to resize the artboard for my visual bounds of my file.
    Thanks,
    Carolyn

    Hi Carlos,
    At this point could we agree at this point that apple script is save is not working properly (in regards to artboards) when you are dealing with 1 art board and that ulitimately Adobe needs to fix this? I hope to test this soon on AI CS6.
    And, at this point we are discussing which is the best work around.
    That being said, I did some more testing reproducing your results with multiple images.  And yes I would agree that the code works well with 2 images on 2 separate artboards (Only only tested 1 & 2). Somehow using one artboard fell through the cracks.
    I was unsuccessful using the code in your most recent post.  However if I created a document with 2 art boards and with art only on the first artboard then saved via apple script with save multiple artboards set to false and omitted anything for range.  I got the best result. (Oddly I get the same result with one art board and setting save multiple art boards to true.)  The image imported into ID closely cropped.  However, this approach was still flawed.
    -- First the image imported slightly off by about 1 or 2 points too low.  Cut of the very top of the image and added about 1 or 2 points of white space before the bounding box at the end of the image.  My work has to be precise.  I am sure that this holds true for others as well.  This has to be addressed by Adobe before this solution could be considered a viable option.
    -- Second for this solution to work a second unnecessary art board needs to be added. I haven't tried adding one via script before saving.  If that is a case an the first item was fixed this could be a viable work around.  But adding a second art board to 50 to hundred of templates for a work around is not practical.
    Until I see that Adobe has fixed this issue,  I am going to stick with my current workaround.  It provides the accuracy I need.
    Thank you so much for your help and input. It has broadened my view of these save options.
    Carolyn

  • Alv report save option

    hi experts,
    I have an executable program which displays alv output, my requirement is after the output is displayed in ultilities tab(drop down) we have saving option which is generally disabled.
    how to make this enabled?
    regards,
    jayant

    I guess you are talking about saving variants, aren't you?
    For this you should use
    data: ls_variant type  disvariant.
    ls_variant-report = sy-repid.
    l_variant-variant = 'SOME_SAVED_VARIANT'.
    CALL METHOD gr_alvgrid->set_table_for_first_display
       EXPORTING
          i_save = 'A'   "this will enable save option
          is_variant = ls_variant  "this will set default variant in layout
    Regards
    Marcin

  • Printing BI Publisher report from OAF Page WITHOUT Preview or Save Option

    I have a requirement to print a BI Publisher Report on the invoke of a Button from a OAF Page. I have followed the method suggested in the below link to integrate OAF and BI Publisher.-
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    In this scenario, I already developed Data Definition (XML) and Template (RTF) for the report and a self service page with 'Generate PDF' button. When the button is clicked the template is getting filled with the data from the database and displaying the PDF output. A dialog box with 'Open/Save/Cancel' appears before the PDF document is shown.
    But my requirement is to avoid this dialog box and Save option so when the button is clicked the document has to be directly sent to the printer.
    Is there anyway to achieve this? Please help as this is very urgent..
    Thanks,
    Naren

    Naveen,
    You need to read the documentation here:
    http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
    All of the information you need is in these:
    Administration and Developer's Guide
    Report Designer's Guide
    JavaDocs
    With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
    For an example that should be very close to what you need to do, see the comments section of this page:
    http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
    Find the comment titled: "Alternative: BlobDomain from data template"
    The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
    Kurz

  • Multiple select options in 1 drop down box?

    Hi,
    I have created a form that works perfectly except for the fact that I need to provide multiple select options in the 1 drop down box; for example, I'm asking what product the customer is interested in and his answer could be multiple items such as Soap, Sanitizer, Hand Towels, Face Cloths etc...
    At the moment, the customer can only select 1 item not multiple.
    Is this possible?
    Thanks in advance for the help!

    Hi,
    It is not possible to allow the user to select multiple items in a dropdown list.
    You could use a list box, which does allow multiple selections.
    Good luck,
    Niall
    Assure Dynamics

  • Multiple select options for an input field

    Hi All,
    We have a requirement where in we need to provide multiple select options for an input field in a BSP application and get output relevant to all the given inputs(do not require range).
    Please do let me know how to solve this.
    Thanks & Regards,
    Lavanya .

    Hi,
    The requirement is : Suppose there is a input field PLANT.
    If we give input for plant it gives related output.
    Now if it is required to give 5 or 6 inputs..like plant1,plant2...plant6 and get the output related to all 6 inputs.
    (Like we implement in ABAP)
    Please do let me know how can this be implemented in BSP.
    Thanks & Regards,
    Lavanya.

  • One search help for multiple select-options in webdynpro abap

    Hi,
    I need a way to use one search help for multiple select-options fields. My scenario is :
    I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
    If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
    If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
    I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
    I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
    However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
    I think I won't be able to use this way. What do you say?
    As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
    MY TABLE (ZBYYT080) CONTENTS:
    SID     VARBL     VALUE     LANGU     VTEXT
    ADS     $WERKS     1     T     Werk 0001
    ADS     $WERKS     11     T     OZYAS  GIDA URETIM YERI
    ADS     $WERKS     5501     T     BOYA GEBZE FABRİKASI
    ADS     $WERKS     5502     T     BOYA CIGLI FABRİKASI
    AGT     $WERKS     2301     T     KAMLI DAMIZLIK
    AGT     $WERKS     9601     T     PANAR DENIZ URETIM YERI
    ADS     $VKORG     22     T     AA KİMYASALLAR
    ADS     $VKORG     8001     T     İINSAAT BOYALARI
    AGT     $VKORG     6500     T     DAMk St.Org
    AGT     $VKORG     5400     T     PANAR St.Org.
    I wish I'm clear enough..
    I will be gald if someone answers me as soon as possible...
    Thanks İn advance..
    MERAL

    Hi,
    Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
    Am I right ?
    If Yes, then in the interface IF_WD_SELECT_OPTIONS
    method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
    have importing param like I_VALUE_HELP_TYPE and  I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
    etc which may help you to link your create DDIC Search help to selection screen params.
    this is just a clue from my side. I haven't tried it myself.
    You can go to the where used list of this method and find some sample implementations which use these params.
    Hope this helps.
    Regards
    Manas Dua

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • How does 'Multiple Calendar Option' work in 7.9.6

    Friends, Could some one please explain me what this 'Multiple Calendar' option is, in 7.9.6. There is not much Information in Config guide with this regard.
    My Question is, does 'Multiple Calendar option' means 7.9.6 supports different calendars but one at a time or does it support more than one calendar at a time in the application.
    Where I'm coming from is, our source is EBS and some Business users want OBIA calendar to be same as EBS so that they can see Adjustment Periods as well..but on the other side they also want Weekly Analysis..which is not present in EBS (our EBS is configured with 445 calendar with Adjustments...so lowest is periods) ..so not sure how to go about this.
    is there is a possibility of using EBS Sourced Claendar( Enterprise) as well as another 445 calendar which will give us week level analysis capabilities? Lets say it allows different calendars at a time..then how does it work?..does it pre-aggregates for different calendars?..please explain.
    Any help regarding this will be highly appreciated.
    Thanks
    Edited by: Madhu.Hosadurga on 23-Sep-2009 03:49

    hey madhu,
    try this forum here: Business Intelligence Applications
    cheers, rnm.

  • Multiple Price options while creation of PO

    Hi SAP Gurus,
                       The client requirement is that to have multiple price options at the time of creation of PO.can we achieve this through standard SAP, if not any workarounds OR any development needed?If it is development please provide me some logic .
    Regards
    Yashaswini

    Hi,
    Better go for different price for same material with validity period in  condition record in t.code:MEK1. For example:
    Material -----Material Price --------Validity
    M1--------------230---------------------01-05-2014 to 31-05-2014
    M1--------------240---------------------01-06-2014 to 30-06-2014
    M1--------------250---------------------01-07-2014 to 31-05-2014
    M1--------------260---------------------01-08-2014 to 31-05-2014
    OR
    Go for using of split valuation and maintain different price for same material with different  valuation types.
    Regards,
    Biju K

  • How to Disable save, saveas option when oprning a file in browser

    hi,
    experts,
    i have a problem when i am viewing a uploaded file in my browser i don't want save , saveas option of word and pdf documents.,
    Please help me as soon as posible.

    hi,
    experts,
    i have a problem when i am viewing a uploaded file in
    my browser i don't want save , saveas option of word
    and pdf documents.,
    Please help me as soon as posible.And what exactly does your question have to do with the purpose of this forum?
    Ask in the right place and you might get an answer, in this case a forum specific to your browser (which you don't even mention, I'm pretty certain that every browser has a different way of doing things like that if they do it at all).

  • Getting prompted to Save As when using Save option

    We would like to deploy Reader XI with Protected Mode enabled. We have noticed that when using the Save option the user receives a prompt to Save As instead. I understand this is a security feature to basically grant Reader/Acrobat permission to save to this location.
    Issue is that we have in house software that opens the PDF using Reader allowing the user to make markups and then save, but if the user saves the file to a different location this will cause the in house software to fail. Older version of Reader with Protected Mode disabled allows just the save to be used and the original file location to be preserved.
    Is there anyway to white list this Directory so that Reader can save to it without a Save As prompt?
    Only fix I know of currently is to disable Protected Mode but we would like to avoid that if possible
    Thanks

    There is a notation in the documentation that may be relevant.
    "Permissions granted by other features often overlap. For example, cross domain policies, internet access settings in Trust Manager, and certificate trust settings for certified documents sometimes interact so that the most permissive setting takes precedence. Users should TEST THEIR CONFIGURATION prior to deployment."
    Have you checked the possible overlapping features?

  • How do i get the "open with" option back for pdfs after accidentally hitting the save option which now automatically saves any pdf?

    Normally when I click on a pdf I would get an option to "Open With" or Save. I usually just opened pdfs first. I accidentally clicked on the Save option in this dialog box and now when I click on any pdf it automatically asks me where I want to save it. I want to get the "open With" option back, because I don't necessarily want to save a copy of every pdf.

    Mountain Lion was released in 2012, so I suppose there might be advice in old threads or on the Apple forums if you don't get a response here right away.

Maybe you are looking for

  • Working in Simulator but not in device

    Hello ....., Atlast from the help of Mr. Ken Walker, i was able to execute PIM applications on Tungsten C Simulator using WSDD 5.7.1. I also tried using Tungsten T3 Simulator and worked in it as well. But there is a problem when i execute the same ap

  • How Delta Queue fetches data in source system.

    Hello Experts, SMQ1 is physical storage of all transactions created in the source system. Delta Queue(RSA7) fetches data from SMQ1. In case of Queued and Unserilized V3 delta where LBWQ and SM13 come into picture. Can you please clarify my doubt. Tha

  • Audition won't play (S/PDIF, OSX)

    Hey there. I have this issue for some months now and tried to get around it several times but no solution turned out to work. I have tried to reset all audio devices, reconfigured everything, reinstalled the OSX and also, this doesn't work with Audit

  • B2B configuration - Import error

    I have exported the B2B configuration from the TEST environment and tried to import the same in the prod environment. It gives me the following error. Import of file MDS_EXPORT_DD_MM_YYYY.zip failed. Unexpected end of ZLIB input stream. The prod B2B

  • How to downgrade yosemite to mavericks

    Hi i would like to know if its possible to downgrade Yosemite to Mavericks on my late 2009 macbook because i only have 2gb of ram and its really slow. Thanks!