How can i create or modify a file in my resuorces?

Hi
I have a file .txt in my resources.
I can read this file by the following code:
InputStream oIS = getClass().getResourceAsStream("/" + FileName);
How can i modify it?
Thnks

The resources in the Jar files are archived, so you cannot modify them(they are read-only). In order to modify data, try to use as storage
the RMS(Record Management Store).
So, the steps you have to follow are:
1. Open your resource file.
2. Open The Record Store and create a record store for your application.
3. Read the information from your resource file and put it in your record store.
4. Close the file and the record store.
By doing this you create an alias of the file in the record store and you can read/write/modify it.
You can search the internet for a better solution but you will not find it.

Similar Messages

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • How can I create a Java help file (*.hs)?

    How can I create a Java help file (*.hs)?

    Thanks a lot.
    I know it is rather poorly used, but I still need it for our current software
    Mit freundlichen Grüßen / With best regards
    Hans-Jürgen Hengsbach - Produktmanagement / Product Management (-227)
    Von: Peter Grainge [email protected]
    Gesendet: Dienstag, 29. April 2014 16:48
    An: Hengsbach.Hans-Juergen
    Betreff: How can I create a Java help file (*.hs)?
    Re: How can I create a Java help file (*.hs)?
    created by Peter Grainge <http://forums.adobe.com/people/Peter+Grainge>  in RoboHelp - View the full discussion <http://forums.adobe.com/message/6340535#6340535

  • How can i  create and access resource file(with .res ext) in j2me

    hi,
    i am developing an mobile international application using jsr-238 an optional api to implement the idea of internationalizationand localization.
    please tell me how can i create .res files in my application to store strings of different languages.thanks inadvance.

    Hello GG RA,
    which fileformat do you want to use (binary or ASCII)?
    There are some LabVIEW shipping examples for File I/O
    You could use the LabVIEW NI Example Finder (Help --> Find Examples..(search item "file")) to get an overview about the different file-formats in LabVIEW.
    Hope this helped out and feel free to reply if you have more questions about File I/O in LabVIEW
    Best regards
    Benjamin

  • How can I Create a Client Configuration File for RemoteApp and Desktop Connection with Server 2012?

    I have a working RDS RemoteApp site and looking to test out the feature in Windows 7 Control Panel\All Control Panel Items\RemoteApp and Desktop Connections
    I came across this link: Create a Client Configuration File for RemoteApp and Desktop Connection and I believe this is what I need to do first, but these instructions are for
    Server 2008, and I'm running 2012.
    Any suggestions or tips on how I can begin testing this with Server 2012?

    Hi,
    You can manually enter the path to the 2012 feed and it will connect and download the RemoteApps and Desktop connections.
    If you need a sample .wcx file I have posted one here a couple of times.  If you want I will look for it and post a link.
    -TP
    I tried adding my URL's below, these are sample links that work for me right now for when I log into the web page, but neither of these work.  And I'm not sure what I would need to do with or how to create a .wcx file.
    When I type in my URL of: https://connect.mydomain.org/RDWeb, I get redirected to: 
    https://connect.mydomain.org/RDWeb/Pages/en-US/login.aspx?ReturnUrl=/RDWeb/Pages/en-US/Default.aspx

  • How can I create and export a file in 1024x768? Is the size supported in FCPX?

    I'm trying to create a video to export and upload on YouTube, and we want to do it at 1024x768. FCPX does not support this file size. Ideally how can I
    1) Create a canvas size in 1024x768 (or the same aspect ratio)
    2) Export my video at 1024x768 (here it has to be the exact dimensions).
    I feel so dippy, this seems like it should be obvious but I can't figure it out! Closest I've gotten is 2048x1556. Thanks for any help!

    The technique explained in the Creative Cow tutorial works perfectly. I use it all the time for the odd aspect ratios we work in for video walls. It does feel odd working in FCPX without creating a Project (Compound Clips are stored in Events) but hapily you have all the editing capabilities in a Compound Clip timeline as you do in a Project timeline.
    It would be nice if FCPX allowed us to enter custom sizes for Projects like one can in FCP7. But FCPX with this technique actually handles odd aspect ratios better than 7 did. I used to run color shifts and transition problems doing this in 7.
    I once called Apple tech support about the problems in 7 and they told me that although you can enter custom resoulutions in FCP7, Apple doesn't support anything other than standard resolutions. I guess they clarified that position with FCPX.
    Come on Apple (and YouTube and Vimeo.) Not everyone lives in a 16x9 world. My daughter, as do most teens, shoots all video at 9x16. Surely that resolution will soon have to be supported.

  • How can i create a special NLS File ?

    I want to create a special NLS file .
    how can i do it,would you please help me
    and tell me the best way.
    Best Regards
    Mehran Bavand.
    null

    Can you clarify what you mean...

  • Can´t create or modified PDF Files on CIFS shares

    Does anyone know the solution for this:
    My customer cannot modify PDF files on a CIFS NAS mapped partition, all permissions are configured as full control
    Doc. files, xls files can be modified without problems in the same share,  this happend only with PDF files.
    Files on local drives are not affected.
    pls your help
    Product Information 
    Adobe Acrobat Pro extend 9.0
    S.O Windows 7 WS PC
    access trough : windows shares access
    local access : no erros present
    new PDF files also affected
    other files extensions not affected
    thansk
    Hector Ortiz
    EMC

    I have PDF files that i downloaded a while ago, those are fine. When surfing - i down load and file never opens nor is there anything to save....

  • HOW CAN I CREATE A TEMPORARY .TXT FILE

    I want to create a temporary text file with Oracle forms 6i, I came across Win_API
    but don't know how to use it.

    Use the Forms 6i Help to check out the TEXT_IO package. There are examples that will easily guide you to what you need.
    I've used this package extensively and it works as advertised.
    Ron

  • How can I create a mono audio file?

    I'm trying to run the Zerius vocoder program, but even if I select the mono input and record audio through the computer, it exports it as stereo. Is there a way I can save a file as mono so I can use it with Zerius? Thanks!

    thanks for your reply.
    for instance exist a nls for english language
    and others nls regarding to others languages.
    now i want to create a nls that a little varied with arabic language(for instance persian).nls is a binary file that can't changed.i know firstly must have a file with extention of NLT for arabic language and change some characters so compile it with a compiler .so it generate a NLS file
    that have my special character(fonts).
    if you need more inormation reply to me.
    so thanks .
    null

  • How can I Create an individual MD5 file for each folder in a main directory?

    The specs for a file delivery I'm making require an individual MD5 file per folder, with the contents of that folder being inside the MD5 file. Such as:
    DAY_01 (MAIN FOLDER)
    A01
    -(files 1-1000)
    -md5 for files 1-1000
    A02
    -files 1001-2000
    -md5 for files 1001-2000
    And so on. Is there a script or program that can make those MD5 files automatically or do I hace to go and do each one individually? Thanks

    I don't know of any pre-existing solution to your question, but it isn't hard to write one:
    set theFolder to (choose folder)
    tell application "System Events"
              set subfolders to every folder of theFolder
              repeat with eachFolder in subfolders
                        set fPath to (POSIX path of eachFolder)
                        set fName to name of eachFolder
                        set md5Filename to quoted form of (fName & ".md5")
                        do shell script "cd " & quoted form of fPath & "; /sbin/md5 * > " & md5Filename
              end repeat
    end tell
    The idea here is that it asks for a folder to process. It then grabs a list of all the folders inside that folder (subfolders), then for each subfolder it extracts its POSIX path and the folder name, then it builds a shell command that actually goes to each folder, runs the md5 command (passing in all files), writing the output to a .md5 file named according to the folder.

  • How can I create a flash .flv file?

    I am going to deliver 12 ultrashort films (about 1 min. each) in flv format.
    How do I do that?
    I dont have Flash but there seems to be some cheaper converters that can be used - however I wonder if they will produce a quality that is good enough.
    And are any of them better than others?
    Thanks for any clues.
    Ulla

    Thanks but it's not a web design issue.  I has to do with the security settings on Wiki 3.  I had to disable the FiltersEnable function to get Flash embeded.

  • How can I create a array with all files from a directory

    How can I create a array of files or varchar with all files from a directory?

    I thought the example could be improved upon. I've posted a solution on my blog that doesn't require writing the directory list to a table. It simply returns it as a nested table of files as a SQL datatype. You can find it here:
    http://maclochlainn.wordpress.com/2008/06/05/how-you-can-read-an-external-directory-list-from-sql/

  • How can you create a multi-page pdf document in photoshop elements 13?

    I previously had pse 11 and was able to create multi-page documents as pse files. However, pse 13 does not allow. How can I create multi-page pdf files from pse 13?

    Alas, for one of those mysterious adobe reasons, it's gone in recent versions. Only multipage file you can make is a photobook.

  • How can I import several small audio files to create one BIG file in iTunes

    I have ONE cd with THREE audio stories contained in EIGHTEEN audio files (6 files make each story). I also have an iMac. Not sure if they're mp3 or not, but they play on computers and car radios.
    How can I take this CD, whisper abracadabra and end up with three files (each with one story)? Don't need to re-burn a CD, but just need to get them on to an iPod.
    I've tried inserting the CD and using the right mouse click/info/options to select 6 files and identify them as a 'gapless album' - but this did not link the files together.
    Any help you can offer would be appreciated. I have read pages & pages of topics, but could not find this particular issue.

    Insert the CD.
    Don't Import it yet.
    Select the CD in iTunes.
    Select the consecutive tracks uyou want joined as one file.
    Go to menu Advanced > Join CD tracks.
    Do this for each set of tracks you want as one file.
    Then Import the CD.
    If the tracks are already in iTunes, no need to import them again.
    Use this -> Join Together
    "Join Together automates the process of joining the files of selected iTunes tracks together with QuickTime and exporting them as a single AAC Music or Audiobook file/track. Optionally, you can then create a "chapterized" audio file of the exported AAC file with pointers to the individually joined tracks."

Maybe you are looking for

  • Unable to load project after cut

    Hi, I've a new (few days old) iMac, 27inch i5, 24G Ram, OS X 10.9.1, Logic Pro X 10.0.6. Interface is M-AUDIO - Fast TrackUltra (latest driver) I had a project that seemed fine until I did a Cut/Insert->Cut Selction between Locations. The cut was fin

  • Yahoo Email App stopped notifying me of new messages.

    Hey guys. I've been noticing an issue with the yahoo mail app on my phone and I have no idea how to fix it. I used to get notifications whenever I had new messages just fine and now I'm not getting them at all. I have to open the app itself to check

  • Mac Pro 2009 Processor Upgrade Possibility?

    I've searched and can not seem to find a straight answer.  I have a 2009 Mac Pro with the single 2.66 quad-core processor.  Since these Pro's use the daughter board (or whatever it's called) with the processor and RAM on them, can I just swap out tha

  • Condition Type Rounding Rule

    Hi all, All my condition types have rounding rule as Commercial. When the client was checking calculation after billing in the accounting document; for VAT condition type, it is rounding below. For example; VAT amount is 2164.989; it should round as

  • Will my iphone 5 work after it dries out after a brief dunk or should I just replace it.

    My iphone 5 got wet.  It won't turn off.  Should I just bite the bullet and replace it or might it work after drying out?