Saving a list on a file!!!!!

Hello, I need to save an entire linked list on files and load it again. I dont know much about files. The node have just one object inside, but that object has several fields like name, last_name. Please help

This is not an excellent suggestion.
toString() is not intended to prepare a persistable
e version of the object. You should instead
investigate the java.io.Serializable interface, which
is designed for exactly this situation.so what are you saying. it's supposed to be
non-persistable?
what do you mean version of the object?
toString() is supposed to be a representation
of the object and the fact that you say it shouldn't
do something doesn't mean much to me.
if there is a representation of an object that contains
pertinant information, and this string can be used
appropriately in the equals and compareTo methods,
and this same string can be used to represent the
object in a file, then what is your beef?

Similar Messages

  • While using a drop-down menu i.e. File, edit, image, or even when saving as and choosing the file type; the list appears and I am able to highlight what i want but cannot click on anything.

    While using a drop-down menu i.e. File, edit, image, or even when saving as and choosing the file type; the list appears and I am able to highlight what i want but cannot click on anything. This is becoming incredibly frustrating. It happens at random time and a restart of the computer is all that helps, then with out any notice it starts to do this again.  Mac Book Pro i7 2.2 16 GB 1333 Ram, (2) 450GB SSD both internal to machine. At this point I am losing file because I am unable to save in the file type I need. Does anyone out there know how to solve this issue?
    Thanks
    phil

    I haven't been unify photoshop much in the past month, but I did try your suggestion and it seemed to work for a while. Today when i went to save a document the same thing happened: click on file>save at this point I can not click on save even though it is highlighted. Tryed to use command s that brings up the save dialogue box, but when I try to change file type I again cannot select it from the drop down menu.

  • Saving Linked List to file

    Hello,
    I have a simple linked link. How do I save the entire list into a file, and and how to I restore the entire link list back into the program so that I can use it normally again?
    I guess Serialization is used?
    I don't want to save save all the filds in a file, then "re create" the link list by loops etc.

    Since Serialization saves the object in question and all the objects it references, if you make you're liunked list element Serializable and then save the first element, the Serialization process will save the entire list.
    To get it back, read an Object from the file, it will be the first element of your list and its next link will point at the next element, etc.
    If you have a circular list, this still works since the Serialization process will recognice that your saving the same object a second time and only send a reference.

  • Saving List as Local File

    hi
      How to save Report output (i.e.,list) as local file that is Excel or Word Document to the system.
       Is there any std procedure to save or we have to write logic using module pool by placing Save button(pushbutton).
    Thanks & Regards ,
    sandhya

    Hi Sandhya,
    Try the following code.
    You can do it this way :
    You call the report whose list you want, in another program, exporting list to memory.
    Then get that list and write it to file.
    DATA : list LIKE TABLE OF abaplist WITH HEADER LINE.
    DATA : BEGIN OF list_asc OCCURS 0,
    msg(300) TYPE c,
    END OF list_asc.
    DATA : wa_c_filename(30) TYPE c.
    wa_c_filename = '/data/ftp/out/rep.txt'.
    data fname type RLGRAP-FILENAME value 'c:\audit_report.xls'.
    data ftype type RLGRAP-FILETYPE value 'DAT'.
    SUBMIT pgm_xyz EXPORTING LIST TO MEMORY
    AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = list
    EXCEPTIONS
    not_found = 1.
    CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
    LIST_INDEX = -1 "LIST_INDEX SY-LSIND.
    TABLES
    listasci = list_asc
    listobject = list.
    /* To download data to the system as excel file.
    perform download_file.
    /* To store as a file in the SAP server . This is not required for your case. The list contents will be in the file in the server, filename and file path as specified in wa_c_filename.*/
    OPEN DATASET wa_c_filename FOR OUTPUT in text mode.
    IF sy-subrc NE 0.
    WRITE : / 'The file could not be created'.
    ELSE.
    LOOP AT list_asc.
    TRANSFER list_asc TO wa_c_filename.
    ENDLOOP.
    CLOSE DATASET wa_c_filename.
    ENDIF.
    /You can download this file to the system using the following function module/
    FORM download_file.
    data fname type RLGRAP-FILENAME value 'c:\audit_report.xls'.
    data ftype type RLGRAP-FILETYPE value 'DAT'.
    /*Table structure should match with list output.
    DATA:  BEGIN OF INFILE OCCURS 0,
           ORDER(10)       TYPE C,
           COST_CTR(6)     TYPE C,
           PCT_1(8)        TYPE C,
           PCT_2(8)        TYPE C,
           PCT_3(8)        TYPE C,
           PCT_4(8)        TYPE C,
           PCT_5(8)        TYPE C,
           PCT_6(8)        TYPE C,
           PCT_7(8)        TYPE C,
           PCT_8(8)        TYPE C,
           PCT_9(8)        TYPE C,
           PCT_10(8)       TYPE C,
           PCT_11(8)       TYPE C,
           PCT_12(8)       TYPE C,
    END OF INFILE.
    loop at list_asc.
      infile = list_asc .
      append infile.
    endloop.
    CALL FUNCTION 'DOWNLOAD'
       EXPORTING
      BIN_FILESIZE                  = ' '
      CODEPAGE                      = ' '
    Changed by sthomas
         filename                 = fname
         filetype                 = ftype
    End of change
      ITEM                          = ' '
      MODE                          = 'A'
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      SILENT                        = 'S'
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      FILESIZE                      =
      CANCEL                        =
        TABLES
          data_tab                   = infile.
    endform.
    Regards,
    Susmitha

  • Powerpoint 2013 throwing 'File in Use' errors when saving to a network drive, file is NOT in use

    One of our sites is having a strange issue when saving to a network location in Powerpoint.  I'm not sure it's a Powerpoint problem, but it's a place to start...
    When saving a ppt to a mapped network drive (the client is running Windows 8 / Office 2013, the network drive is a DFS share, pointed to a Server 2012 machine if that matters), users will almost always get the following error:
    "Someone else is working in (filepath\name) right now. Please try again later." 
    This happens regardless of where the file is being saved on the network drive, in fact it happens even when there is no pre-existing file with that name in the location.  So, even if I'm saving a brand new copy of test.pptx to F:\Share\PPT where there
    is not currently a test.pptx, I get the error.
    Word, Excel, and all other tested apps save properly.  Powerpoint can save correctly to the local computer, but not to the network drive or to My Documents (which redirects to the same network drive).
    When the error pops up, if I look in Open Files in Computer Management on the Fileserver, I see the file I'm trying to save listed as being open, but it shows 'Disconnected' rather than a username.
    Any suggestions would be appreciated - again, not sure that this is a Powerpoint problem - could be Windows 8 or some mysterious DFS thing...
    Thanks.

    Hello,
    Been having a very similar issue in our environment and just came across this thread while Googling and looking for answers.
    In our case, we have Windows 7 clients and 3 main files servers - 2 are Server 2008 R2, and one is Server 2012.  We use PeerLink File Collaboration to sync the files between
    the servers (similar concept to DFS).  For us, it seems to happen specifically with Excel 2013, and only when saving to the Server 2012 file server.  I can reproduce the message pretty much every time.  After seeing your post,
    I tried it in Powerpoint just out of curiosity, but it saved properly - Word saves properly as well.  
    Been doing a bunch of testing to try and narrow it down, and this is what I've found:  
    Excel 2013 -> Server 2012 = error message.  
    Excel 2013 -> Server 2008 R2 = no error message.  
    Excel 2010 -> Server 2008 AND Server 2012 = no error message.
    <o:p>We've been leaning towards the PeerLink replication as the culprit up to this point, but last night I did some testing with the PeerLink Collaboration turned off, and
    still received the error message.. so now I'm even more confused! 
    I see that it's been a few months since your post..  have you made any progress here?</o:p>

  • I saved web page as html file, but can't open saved file as web page

    I did a FILE, SAVE PAGE AS, then chose 'WEB PAGE COMPLETE' - and a directory is created on my hard drive - with the directory name, for example - "c:\....\Ask a Question _ Mozilla Support.htm". (for this web page).
    When I try to open the saved web page from Firefox, using FILE, OPEN, I see a new window that looks like a file manager window, I then select that saved .html file and click OPEN, and a new window opens that looks like file manager - displaying with all the files in that directory - "Ask a Question _ Mozilla Support.htm". That is, it does not open and dislpay the web page as I expect it should (that I saved earlier).
    However, if I go to the file manager, I can see that directory is saved, and has the Windows Explorer icon associated with the directory "ask a question ....html", and also has a file type of HTML listed. If I double click that directory in file manager, Windows Explorer will open that directory and dis[play it as a web page, as I expected.
    I would like to know why Firefox does not open the directory name as a web page from the FILE, OPEN command, but instead shows me the directory contents(all the files in that directory)?
    BTW, if I try FILE, OPEN, using Windows Explorer the same thing happens - it opens a new window listing all the files in that directory.
    Is this the way the FILE, OPEN is supposed to work?
    It seems confusing, because if I am in any other program, for example WinWord, and do a FILE, OPEN command on a Word file, it opens the file as a Word Document - it does not just show the file in a "file manager window.
    But when I click FILE, OPEN on an HTML file(directory using Firefox, it does not open that html directory as a web page?

    I am in the Windows Explorer 'Details' view, and I see the folder with 'Type' of FILE FOLDER. In that folder are all the .js and .css and .png files - as cor-el said.
    ''But now I also see'' that there is also an htm file - ''with the exact same name ''as the folder, but it has a 'Type' of 'HTML Document'. When I have Firefox do a File, Open on the HTML Document - it does open the web page that I saved and does display it as a web page.
    I did not realize that Firefox saves both:
    1) a Directory '''(Type 'File Folder') '''''', and,
    2) an html file''' (Type 'HTML Document')
    ... '''and that they are the exact same names! '''
    I was clicking on the wrong one! Instead of clicking in the .html file, I was incorrectly clicking on the folder!
    (The archive add on looks interesting, but shouldn't I be able to open the saved web page, from the browser, using File, Open File) ?

  • The firefox icon shows on my desk top and in my task bar, but why does it NOT show in my list of Program files?

    My Firefox icons are showing and usable from the desktop and from the task bar; however, the Mozilla Firefox does not show in my list of program files. Why doesn't it show?

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems?esab=a&s=troubleshooting&r=3&as=s#w_5-reinstall-firefox here].
    <b>WARNING:</b> Do not run Firefox's uninstaller or use a third party remover as part of this process, because that could permanently delete your Firefox data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be recovered unless they have been backed up to an external device!</u>
    Please report back to see if this helped you!
    Thank you.

  • How to get a list of uncompressed files in ms Windows XP?

    I am running XP sp3.  How can I get a list of uncompressed files on my hard drive?  Is there like an fsutil /s,  dir /s, or ls -la command that might work?  Do I need to use a for loop in batch cmd file?  Or is there a sysinternals
    command equivalent to streams /s that might do the trick that anyone knows about?

    Yes, thanks, that is one way I already knew about.  I want a list.  So yes I could take each of 100,000 files and note which ones are black and for each of them hit properties and cut and paste into notepad a file saved as "uncompressed.txt".
     I was hoping to avoid doing that work, since it would take a lot of time.  Do you know of a faster way?  Is there a sortable file field, like "status" or "attributes" that would work?
    Jason

  • Saving Lens Profile Creator Project Files-advantage?

    Dear Lens Profile Creators,
    I have been saving my LPCP project  files for every set of images for my profiles(all the same aperture is how I manage my sets). Is there an advantage to saving these project files? I have looked at these files in "notepad" and it does list each image file used in a given set, so I guess that would be the only advantage, to be able to go back in the future to se what images you had used. (note I am not talking of the actual profile files, the LCP files).
    Thanks, Debra

    Thanks Simon.
    Yes, I do create my profiles in multiple sessions and append each resulting sub-profile  to the profile itself. You do not have to save each "project", which is the LPCP file that I mentioned which contains the image file names for each set, but you do "Save" the profile results first to the main profile and then choose "Append" and after that, you could if you desire, invoke the "Save project as" command and then specify a LPCP file name, such as "Set1_17_55_D2X", and go on, or, you can simply "Save" to the appropriate profile name, the LCP file, and then append, and go on to the next set(without saving an LPCP file) to continue in processing your image sets and saving and appending to the main profile.
    Debra
    Message was edited by: Debra Gillilan to correct spelling

  • Performance monitor- can't paste previously saved counters list

    Hi all!
    In Performance monitor mmc I can save currently used counters by selecting them, and right click -> “Save Settings as...”. These settings are saved in .htm file. If I open this file in Notepad, select all text, and then go back to empty
    perfmon console, there are options to paste (with Ctrl+V or by button “Paste Counter List”) this counter list.
    But nothing happens…  My perfmon console stays empty!
    This approach works exactly as expected in Windows Server 2008 R2, but not in Windows Server 2012. I tried on tree different server installations, and with no success. The only way I found to save and re-use later my counter list is to
    start mmc.exe, adding performance monitor snap-in, select necessary counters, and finally save as custom console.
    Did anybody knows why in Server 2012 cannot paste previously saved counter list In performance monitor console?

    Hi all
    I habe exactly the same problem: I have a text file containing all the wanted counters which I saved at a running Server 2008 R2. I simply copied that file to the other Servers (2003, 2008, 2008 R2) and it worked everywhere. But not on Server 2012.
    I thought, ok, maybe the filesyntax has changed. So I started from the scratch and added few counters manually in the server 2012, chose "Copy properties" and saved them to a new file.
    Afterwards I closed the performance monitor, started it again and tried to copy / paste them again from the text file. But nothing happened as mentioned by Oleg V. Ivaonov.
    Thanks for any hint or solution, Andreas

  • .m4v files listed at spotify files not imovie

    I've been saving some old video tapes by importing them into iMovie 10.0.5. Some of them came from a previous iMovie version, 9.9.5 (?). Due to space constraints I moved them to an external disc and all of a sudden they're marked as Spotify files (.m4v). Spotify has become their default player! I changed the default player to quicktime in the Get Info window but their still listed as Spotify files. How do I fix this?
    Thanks for any and all help.

    Why don't you just use your install disk(s) and reinstall iMovie?

  • I saved my Form Central spreadsheet file once as a excel file but it will not allow me to save it a second time as an excel file.  It says that I cannot complete this action because the file me be open in another application, but it is not open in another

    I saved my Form Central spreadsheet file once as a excel file but Forms Central will not allow me to save the file a second time as an excel file.  I am informed that I cannot complete this action because the file me be open in another application, but it is not open in another application. What is the problem, and how do I solve the problem.  Thank you. Jeff

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them?

    I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them without causing a problem?

    Here is one thing I found googling for WebEx:
    http://www.webex.com/why-webex/overview.html
    (The x64 would most likely mean 64 bit). It may be a Windows based application/plugin, but since I had never heard of either, I'm only guessing there. If you do a search systemwide for it and don't find it plus don't know why it's there, I'd say throw it in the trash (don't empty it yet - make a note of the file path just in case you do have something installed that needs it so you can move it back).
    Glad to hear it's not a torrent; some people use those not realizing that quite often there is a price to pay for downloading stuff for free that costs money elsewhere - the software packages quite often include little "add-ons" = malware which you really don't want.

  • I received pictures in a dozen emails and saved each picture into one file in .pages.  I did not import the photos before doing this and now iPhoto won't recognize the pictures because they are in a .pages file.  How do I get the pics to iPhoto?

    I received a dozen pictures in a few emails and I saved them all into one file in pages.  I just copied and pasted.  I do not have the originals any longer.  Iphoto will not permit me to import the pictures as it does not recognize a .pages file, nor can I simply click and drag from the pages document to iphoto nor from pages to the desktop to iphoto.  How can I save each picture I guess back into a jpeg and then import them into iphoto or have i lost them to a pages document forever?  This is urgent as I need the pictures made into a book on iphoto for work by Friday!!!  Please advise!  Thank you.

    Greetings,
    Locate the Pages document wherever it's located on your computer and click once on it to highlight it.
    Go to File > Duplicate to make a backup copy of the file.
    Click once again on the file to highlight it.
    Go to File >  Get Info
    In the "Name & Extension" category remove the ".pages" extension and put in ".zip".
    Close the info window and double-click the now renamed pages file (zip file now).It will decompress into a folder which contains all the base components including all the images you added.  These can be dragged onto the iPhoto icon to import them.
    Hope that helps.

  • Using SQL stored procedures How to get the list of .rar files from e:\Tempbackup directories from the different remote desktop windows server and delete the .rar files which contains the current month and date

    Concept:
    Every month i need to find the list of .rar files from the
    E:/TempBackup directory from the different environments (remote desktop servers) and i need to delete the current month
    .rar files alone from the respective (E:/TempBackup) directory. below is example files structure inside the
    E:/TempBackup.
    example:
    zDROP_2014_08_31_Backups.rar
    zDROP_2014_09_31_Backups.rar
    zDROP_2014_10_31_Backups.rar
    from the above list i need to delete the zDROP_2014_08_31_Backups.rar(current month) file alone and also logs should be capture for this deletion.
    key words for this are zDROP and Current month and date.
    i need a stored procedure for this concept. could you please help on this.

    Hello,
    You can schedule an operating system task (Control Panel -> Schedule task) to either call a batch file or a PowerShell script.
    Please read the following resources for examples:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/61373719-fffb-4d94-bdbe-7d8ed8620b44/delete-filesfolders-on-remote-servers-using-powershell?forum=winserverpowershell
    http://www.networknet.nl/apps/wp/archives/943
    http://jeffwouters.nl/index.php/2011/10/powershell-script-to-delete-files-older-that-a-week/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Problem inserting Flash video into DW CS3 template

    I would like to insert some flash video into an editable region inside a DW CS3 template. The template I am using seems to work for literally hundreds of other pages I have made (none of which, incidentally, have any media of any kind in them). I hav

  • BSP doesn't work when opened through MS Office application

    Hi Experts, I developped a bsp application to display directly all originals of a Document Info Record. The url has got some parameters: ex:http://maplmqa.sylvania.com:8000/sap/bc/bsp/sap/z_phl_guest/index.htm?dokar=ZPI&doknr=000000000000000000256416

  • To 24p or 60i that is the question...

    If I'm doing some high speed auto race type filming would it be better to use 60i -- if I plan to ultimately publish on HD Blue-Ray is it better to stay 60i? Rob.

  • Watch Ipod Classice on TV

    I bought a component AV cable for my Ipod/tv. When I hooked it up, the sound comes through but the picture does not come through (there are lines on the screen). Does anyone know why? I have checked the cable connections multiple times, but no change

  • Want interview quesstions of apex

    hi friends can anyone help me out with possible interview questions of apex ....and i would also like to know whats the diffrance between J2EE and Oracle Apex thanks in advance rommy