How can i get and save the name of the file

Hi all
in my program i'm dealing with several text files each has its own name
after doing some process on each i do save the output as output.txt
can i add the file name before or after the output.txt
i.e i want the name of the file to be part of the saved output
filenameOutput.txt
or
outputFilename.txt
any ideas?????

Just write it - somewhere in your code you have to have the file name anyway, or you couldn't write to that file.

Similar Messages

  • I can not boot my MacBook Pro. How do I get and save the data that is not backed up??

    I can not boot my MacBook Pro running on Lion 10.7.4. I pressed control, comment P and R keys and O got to the disk utility, then I tried to repair disk and it can not be repaired. I get a message that tells me to back up as much data as possible ?. But if I can not open the computer how can I save my data??
    I have a back up until 2 weeks ago on time machine. but the work of the last 2 weeks is extremely important how can I get it??
    If I use m time machine backup do I loose the additional data of the last two weeks!,
    Please help.. It's a huge amount of work that I have done and can not loose it

    If it were me, I'd get a new hard drive or SSD and put it in an external enclosure. Boot into the recovery partition, format the new drive (not the old one) and install the OS to it. Shut down the Mac, open it up, and swap the drives. You may be able to read your data from the old one externally if you're lucky. If you're very lucky you may be able to use Migration Assistant to move all your stuff to the new drive.
    Look at ifixit.com for the exact procedure to get to the drive on your model. If it's a unibody it's pretty simple.
    http://www.amazon.com/Sabrent-2-5-Inch-Aluminum-Enclosure-EC-TB4P/dp/B005EIGUD4/ ref=sr_1_3?ie=UTF8&qid=1392154588&sr=8-3&keywords=2.5+enclosure

  • After the new 10.9.2 Maverick upgrade, my Photosmart C4480 3 in 1 printer can not scan and save the file to desktop or documents.  You can only see the image in the print preview area. Does anyone know how to fix this or when a fix will be out?

    After Aple support downloaded the new 10.9.2 Maverick upgrade on my MacBook Air, my Photosmart C4480 3 in 1 printer can not scan a document and load the file on to my desktop or document file. (You can see the doc image in the preview but it doesn't save it.) Does anyone know an Apple fix for this or when the fix will be out?  After hours of trying reloading, and the usual fixes, etc. Apple told me to call HP, and HP told me they don't support Mac.  It does not seem honorable of Apple to put out an upgrade and not tell people it will destroy their scanning ability, and that the only thing to do is to buy another printer/scanner.

    Have you tried using Applications/Image Capture to scan.
    Vuescan often works.
    VueScan
    VueScan FAQ

  • How can I get and change the items grid of MIRO trx

    Hi everyone,
    I have a requirement where I need to get and change the tax code field in MIRO's item grid. Is there a function module / Badi to do this? I used MRM_HEADER_CHECK, but the parameters related with this badi only allows read but not change them.
    Do you have any idea?
    Thanks in advance!
    Regards.
    Leo.

    Hello,
    You can change that table with help of the filed-symbol in the BADI MRM_HEADER_CHECK.
    LOOP AT ti_drseg INTO ls_drseg. 
      lv_index = sy-tabix.
    ***... do your processing
      MODIFY ti_drseg FROM ls_drseg INDEX lv_index.
    ENDLOOP.
    FIELD-SYMBOLS: <drseg> TYPE mmcr_tdrseg.
    ASSIGN ('(SAPLMR1M)ydrseg[]') TO <drseg>.
    <drseg> = ti_drseg[].  " this will modify the data in MIRO with your modified data
    Regards,
    Naimesh Patel

  • How can I set and save the APN on my Z10 in Myanmar?

    I have a blackberry z10 stl 100-2. I live in MYANMAR where there is a only one carrier "MPT". It allows every user to use internet by putting an APN name "mptnet" in 2 kyats per minute. Every handset can use data services by this way even blackberry bold 9900 included. But now I put this SIM card into my new Z10. After that I couldn't even set up the phone. So I sent this phone to Singapore and set up , then I have got back. I can use it for only phone call and can use internet via wifi connection. I can't save the APN at all although I type APN name in APN name field and tap the save button. So I can't use the data services with this latest and expensive bb z10 until now while other phones such as Iphone, HTC, Samsung phones is working with this APN easily. Please kindly advise me if you have a solution for this problem.
    Thanks and regards,
    Lmm

    Your SIM card has data working in any other phone I hope.
    Try this. Under Network Connection>Internet Tethering. setup tethering on the Zed10 either USB/Bluetooth option. Try to turn it on. If it fails to turn on, restart your device and try to turn on again. It should turn on and it should change from you small e or h to a caps one.
    Please update on progress
    Twitter: @IAmBenGiey | Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Try my apps:
    The Ultimate Currency Converter and T2G - BloGFeed

  • How can I get and change the values of Withholding tax grid in MIRO trx

    Hi everyone,
    I have a requirement where I need to get and change WT_WITHCD field in MIRO's Withholding tax grid. Is there a function module / Badi to do this? I used MRM_HEADER_CHECK, but the parameters related with this badi doesn't have this value.
    Do you have any idea?
    Thanks in advance!
    Regards.
    Leo.

    Hello Leonardo,
    You can change that table with help of the filed-symbol in the BADI MRM_HEADER_CHECK.
    LOOP AT ti_drseg INTO ls_drseg. 
      lv_index = sy-tabix.
      LS_DRSEG-MWSKZ = 'I0' . " < For example
      MODIFY ti_drseg FROM ls_drseg INDEX lv_index.
    ENDLOOP.
    FIELD-SYMBOLS: <drseg> TYPE mmcr_tdrseg.
    ASSIGN ('(SAPLMR1M)ydrseg[]') TO <drseg>.
    <drseg> = ti_drseg[].  " this will modify the data in MIRO with your modified data
    Regards,
    Naimesh Patel

  • ? How can I get and keep the sound on my ipad?

    I keep losing the sound on my ipad. Help.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
     Cheers, Tom

  • How can i copy and rename the file i have copied to a different folder

    i have a file in a source folder and i want to copy it to a different folder.
    all these file coming from source have the same name and i am putting them into one folder that is the destination
    and i want to rename it as 1_1.txt 1_2.txt and so on.
    below is my copy fuction
    UTL_FILE.fcopy ('FLX_SIGNATURES',
    filesource, -- source of image which i get using a loop above
    'DELTA_SIGNATURES',
    filesource --destination image which i want torename
    the above is in a loop
    so for each filesoure the name will be 1_1.txt for all folders that have the same file name and i want to change the name any time i copy can you help

    Dear kama021!
    Please have a look at the following link. It shows UTL_FILE.FRENAME. That should be the procuedure that fits your needs.
    [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#i1003641]
    Yours sincerely
    Florian W.

  • My iPad is disabled, but I know the passcode.. When i connect it to iTunes it says it can't access it because it has a passcode. How can i get rid of the passcode without resetting the iPad? And if there is no way to do so, how do I completely reset it?

    My iPad is disabled, but I know the passcode.. When i connect it to iTunes it says it can't access it because it has a passcode. How can i get rid of the passcode without resetting the iPad? And if there is no way to do so, how do I completely reset it?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.htmlhttp://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tbhttp://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Devicehttp://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htmhttp://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Every time I open Safari, I get a message (and a pop-up) that says the Safari browser I'm using does not support Community Toolbar. How can I get rid of the Community Toolbar or at least turn it off?

    Every time I open Safari, I get a message (and a pop-up) that says the Safari browser I'm using does not support Community Toolbar. How can I get rid of the Community Toolbar or at least turn it off?

    That toolbar/ct plugin seems to cause problems for all who install it!
    Close Safari, then locate and delete the following files and it should be gone:
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/Receipts/ctloader.pkg
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    /Users/<User name>/Library/Application Support/Conduit
    where / is the root library on your Hard Disk.
    If you are running Snow Leopard you should also look here:
    Library/launchAgents/com.conduit.loader.agent.plist
    Library/Application support/conduit plugins
    Note: Safari does not support any third-party toolbars except those supplied as an extension to Safari via the Extension Gallery.

  • I haven't get any receipt of purchases since mid January 2014. How can I contact and let the itune fix this? (I live in Thailand, not available to call or find local support.)

    I haven't get any receipt of purchases since mid January 2014. How can I contact and let the itune fix this? (I live in Thailand, not available to call or find local support.)

    Has the ISP modems and routers been power cycled then tested again? 
    Possible ISP connection issues or LinksysSmartWiFi.com service outage maybe...
    Are FW versions on all routers up to date? 
    To safely update FW, I recommend doing the following: Download the FW file from the support site first.
    Disable the auto update feature on the router. <If this was on, possible someting was updated recently. I recommend leaving this OFF.
    1. Save router config to file first using IE or FF with all security add-ons disabled.
    2. Factory reset the router with all other devices disconnected or turned OFF accept for 1 wired PC.
    3. Reload or Update the FW using IE or FF. Just download the FW file to your local wired LAN PC.
    4. Factory reset the router and then set up from scratch first and test with out loading the saved config from file. Check to see if any problems are fixed before loading the saved config from file. Sometimes you need to set up from scratch with out loading the saved config file. Just safer that way.

  • I have a Australian iTunes account and want to switch to using the u.s store as I now live there, I cannot do this because I have $1.41 still in the oz account an image to have a zero balance to change stores, how can I get rid of the $1.41?

    I want to switch to the u.s store as I now live in the us, I cannot switch stores because my balance is $1.41 in the oz store and needs to be zero, how can I get rid of the $1.41 when everything costs more or less than that? I do not have a credit card on the oz iTunes account an I cannot use my us one to top it up.
    HELP

    Click here and request assistance.
    (60992)

  • How can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card, how can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card

    how can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card????please help

    You can't. There is no memory card. It uses flash memory that's soldered to the logic board. If you didn't back it up, your data is gone.

  • I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    Hi,
    According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
    Roger Lu
    TechNet Community Support

  • I have an iPhone 6 with IOS 8.1.3 and when I use the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can have the whole screen to what I am browsing?

    I have an iPhone 6 with IOS 8.1.3. When I go to the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can use the whole screen to what I am browsing?

    OOPS! Too quick on the trigger to ask that question without trying anything. Sorry. Solved it by touching the bookmark icon.

Maybe you are looking for

  • HT3275 My Time Machine has stopped backing up and now it errors out everytime I make another attempt.

    My Time Machine has stopped working and now errors out everytime I try to re-connect ?

  • Processing multi-part messages in Flex

    Hello, I'm writing an extension for Photoshop using AS3 and Flex. This extension connects to a HTTP server that replies with an HTTP multi-part response containing images. Is Flex able to decode this response? So far I have only been able to see the

  • MEMORY_MANAGEMENT Issues with newly built PC.

    Hey guys, I just had a new PC built and it was working great for about a month and a half.  I use it mostly for Gaming.  Yesterday I got a MEMORY_MANAGEMENT crash while just being on the web.  Today, I was searching though folders on my PC when I got

  • Verizon wireless billing error

    i have been with Verizon wireless since 2006,With two lines,cell phone and broadband/laptop.2010 my 2 year contract period for the third time had been fullfilled.I upgraded to the Droid 1-phone line w/data,By doing this i no longer needed broadband #

  • Why am I paying for Prime and losing station

          I cannot quit until October but after IFC disappeared, no BBC America, now no Sundance in Prime while I'm still paying an arm and a leg, i'm starting to look elswhere.  My son went to Roku and I have that and Apple TV.  My internet seems slowed