Cant pass file from a dir to fileinputstream()

hi !
i am stuck here ..please help.
I have an application that creates a dir called temp in home directory . and and a file which is named in following format. for example
080718002220.txt
i.e. systemdate.ext type . Since this files are created in real time and has no specific file name .How would i pass it to fileinputstream() .
Note : only one file will be there at a time but has no fixed file name as is mentioned in tutorials.
Is there a way to pass either the naming pattern or file extention to do select the file .??

A hint: you can peruse a directory for its contents.
A sidenote: *.* denotes the working directory, which might be different from the home directory.

Similar Messages

  • Cant move files from previous saved CD to desktop or anyplace else

    Help -- I cant move files from previous saved CD to desktop or anyplace else
    I don't know when this started but it was two days ago I noticed this. I have changed all the permissions in info to allow me to have read write access to all my hardrives(2) which are both segmented. May have started when I put in the second HD and now I have three systems installed.
    I did erase the com.apple.recentitems.plist -- which did not do anything.
    I was able to send a copy of the file from my CD via iCHat with no problem.
    Originally it would not allow me to move any files even on the harddrives. Not it seem related to the CD's

    this was related to Leopard refusing to give me administrative rights

  • My mac disk is full and i cant transfer files from Mac to USB. saying the format is not good, how can i change the format and what happened to the files i have on USB?

    my mac disk is full and i cant transfer files from Mac to USB. saying the format is not good, how can i change the format and what happened to the files i have on USB?

    Once something similar happened to me. The external drives I had set up for FCP to use for some reason were not mounted, and FCP put all its render files on the main drive and I couldn't find them anywhere.
    Go to applications, and control-click (and hold down) on your FCP icon; you should get a pop up menu that says "show package contents". Select that, select the "contents" folder, then the "mac OS" folder. See if your quicktime file is in there, or if you've got render files in the "render" folder or audio render files in the "audio render" folder that don't belong there.
    That's where FCP sticks stuff when your documents FCP project folders are not available or when external drives you've selected aren't available.

  • How to copy .gif files from one dir to another using runtime.exec

    hello sir/madem,
    i want to copy some gif and jepg files from one directory to another dir using swing.
    when i tried with using runtime.exec(String[]) i am getting the following error.
    anybody please tell me what is the problem in my program
    java.io.IOException: CreateProcess: ren c:/windows/desktop/copy.java c:/windows/
    cc.java error=0
    code:
    public class copy
         public static void main(String[] args)
              try{
                   String s[]=new String[3];
                        s[0]="ren";
    s[1]="c:/windows/desktop/copy.java";
    s[2]="c:/windows/cc.java";
              Runtime rt=Runtime.getRuntime();
    Process p=rt.exec(s);
              int i=p.waitFor();
              System.out.println("i is "+i);
              }catch(Exception e){System.out.println(e);}
    please mail me to [email protected]
    thanks in advance
    samba reddy
    india

    why use the Runtime? There are methods for this in the IO package ...

  • Passing file from report to workflow container

    My requirement is a report will will upload a file from the desk top.
    After uploading the file a workflow should trigger from the program
    for which i am using the FM "SWE_EVENT_CREATE".
    Apart from uploading the file, the report will fetch some data from
    tables and i am passing the data to workflow using the above FM. Now
    how can i pass the file to this FM, so that the file is available in
    the workflow container.

    You have to follow the below sequence of steps.
    1)You are uploading the data from your desktop and the data will be in an internal table. Collect the entire data which you want to pass to the Workflow in a single internal table.
    2)Export this internal table to memory using Export statement. See syntax to use this statement for exporting internal table data.
    for example :
    EXPORT : T_PO_STATUS FROM T_PO_STATUS TO MEMORY ID  'PR_PO_STATUS'.
    3)Now when You trigger your workflow using the said FM, in the code of a Method associated to a particular Task, you have to import the internal table data using IMPORT statement.
    for example :
    IMPORT : T_PO_STATUS TO T_PO_STATUS FROM MEMORY ID 'PR_PO_STATUS'.
    4) after importing you have to pass this data to the internal table which is declared in the workflow container. for this use the below statement.
    SWC_SET_TABLE CONTAINER 'POStatus' T_PO_STATUS.
    5) The internal table structures must be same both in the report program and in the workflow container. This way you can get the required data from report program to the workflow container.

  • Cant deleate files from hd hooked to wrt610n

    i got a 610n and i have a 1 gig hd attached to it an di cant delet files?  i have called etch suport they said you cant once you write them you only have read and write access? whats that tyheres got to be a way to delet them.  i trind from my computer from within the router window nothing gets them deleted says you cant do it or it says read write only...theres got to be a way to do this anyone please...tech support says you cant do it but i dont belive that

    care to explain. i have 13 disks to acess...i update them two tyimes a year and i have to deleat them each time how do i delte them ?

  • Cant delete files from my ipod

    i cannot delete a file from my ipod and now i do not have enough room to move any songs onto my ipod

    If you have all your music on your computer as well, then just Restore:
    http://docs.info.apple.com/article.html?artnum=60983
    This will wipe everything from your iPod.

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • XI is not picking the file from source dir after exported from DEV to QA

    Hi Experts,
    We have moved one XI object from Dev to QA. It was working fine Dev but in QA XI system not picking the file from the source directory.
    I have checked Communication Channel monitoring and receiver determiniation everything is fine. But still it is not picking the file.
    Could you please help us.
    Regards
    Sowmya

    Hi
    We have used the CMS to transport XI objects. Everything has been configured automatically. I checked all the configuration and everthing seems to be fine.
    Could you please give any more suggestions.
    Regards
    Sowmya

  • Cant send files from NOKIA 7230 to PC using blueto...

    Hello, I purchased a bluetooth dongle and connected it to my PC. I paired my PC and nokia 7230. I am able to send files from PC to nokia 7230 successfully. But when I try to send from nokia 7230 to PC i get service not supported. I am using windows 7. Any help please?

    when u plug in your phone to your computer, on your phone select data transfer. If an error message apears on your phone saying its unable to connect, restart your phone and plug it in again. after selecting data transfer, your phone's memory should appear as a flash drive on your computer. select images for your pictures. the pictures are in folders arranged in date order. for videos go to the videos folder. the videos are in MP4 format.
    can't wait for n97 successor

  • Cant transfer files from phone to pc

    I am trying to transfer a file from my pc to another pc using my phone
    I have a 1 gb memory card in my phone and the file is only 800 kb so there is loads of space. I put the file on my phone and when I try to take it off of my phone and put it on the other pc it only transfers a folder not the file.
    I have Nokia PC Suite 6 on both computers
    XP on both coms service pack 2 on both
    when dragging file off of phone and putting it in the folder I want it in the file is highlighted RED and doesnt work
    what can I do ???

    Files are files (a bunch of bits with a name). PC Suite does not care what the files contain, if you use PC Suite to copy the file to one phone, and then PC Suite on another PC to copy the file from the phone.
    Something else is going wrong here, and most likely it is just a mistake in using PC Suite, rather than anything else.
    Which phone (model) do you have?
    And how, exactly, do you copy the file to the phone with PC Suite?
    And did you try without PC Suite; connect the phone in USB mass storage (data transfer) mode? That way the phone appears as an USB drive and PC Suite is not involved at all.

  • Cant execute files from Terminal In /Users/me/bin. Only in /usr/bin

    I have about 30 Snow Leopard machines in my Bioinformatics lab with one central box where I distribute programs.
    All of our scripts/programs are command line based.
    When I SCP a program to the target machine, I drop it in /Users/BioLab/bin/
    I am usually never able to execute the file from the Terminal just by typing its filename on the target machine. I can if I move the file to /usr/bin or of I create a symbolic link in that folder I always can.
    On random boxes I am able to execute files in /Users/BioLab/bin/ from Terminal. Why is this so inconsistant?
    What do I have to do to these machines to run files in /Users/BioLab/bin/ straight from Terminal w/o moving them to /usr/bin?
    Thanks!

    You modify the PATH environment variable on the systems to include /Users/BioLab/bin/
    export PATH="$PATH:/Users/BioLab/bin/"
    Your choice are to modify the .bash_profile for every user account on every Mac, or modify the /etc/profile on every Mac, or create a /etc/paths.d/BioLab entry on every Mac (look at one of the existing /etc/paths.d entries as an example).
    By the way, Terminal, Unix, and command line command questions are best asked in the Mac OS X Technologies > Unix Forum
    <http://discussions.apple.com/forum.jspa?forumID=735>

  • Cant copy files from a crushed hard disk

    Hello,
    I use macbook pro (bought few months ago from the US) with 10.6.3 OS. I had a 500GB hard disk and had MacOS and Windows 7 installed through Parallel's Plesk.
    Few days ago, the computer frooze and i had to reboot. Once i reboot, i got the flashing folder with question mark logo. Googled and found out that my hard disk may have crushed. I replaced it with another 500GB hard disk.
    Now this is what happened:
    1. I installed MacOS again on the new hard drive
    2. Got a SATA disk connecter and connected my old drive, MacOS recognized the disk and the two partitions were opened with errors. The main partition where i have all my files were there. I actually was able to get most of my files.
    3. I used migration wizard to move all my settings, applications to the new hard disk but i failed to migration the /users folder. It keeps saying calculating... and never finishes.
    4. I tried to copy files manually but it seems like all files are locked! I could not change the file permissions.
    I googled and found out a software called testdisk to repair partitions, followed all steps but failed. I kept getting message that the partiion table is corrupt or resource busy. I run pdisk and get the following error message:
    pdisk: No valid block 1 on '/dev/rdisk1'
    pdisk: No valid block 1 on '/dev/rdisk0'
    Partition map (with 2048 byte blocks) on '/dev/rdisk2'
    #: type name length base ( size )
    1: Applepartitionmap Apple 15 @ 1
    2: AppleDriverATAPI Macintosh 456689 @ 16 (892.0M)
    3: Apple_HFS MacOSX 3632472 @ 456706 ( 6.9G)
    4: Apple_Free 4 @ 4089178
    Device block size=2048, Number of Blocks=4089182 (7.8G)
    DeviceType=0x0, DeviceId=0x0
    Anybody has an idea how i get my /user folder contents as i have all my mails, saved passwords, application settings gone! A big headache to manually fix them all?
    Farshid

    Googled and found out that my hard disk may have crushed. I replaced it with another 500GB hard disk.
    If this drive physically died, then it would have been covered under the warranty, since the machine is only a few months old. However, that does not sound like what happened.
    2. Got a SATA disk connecter and connected my old drive, MacOS recognized the disk and the two partitions were opened with errors. The main partition where i have all my files were there. I actually was able to get most of my files.
    3. I used migration wizard to move all my settings, applications to the new hard disk but i failed to migration the /users folder. It keeps saying calculating... and never finishes.
    If you're able to mount this drive, then it wasn't physically damaged and did not need to be replaced. In the future, you need to verify that the disk is dead before spending the money on replacing it!
    In order to repair the drive, you can try Disk Utility, which is in the Utilities folder in your Applications folder. If Disk Utility is unable to repair it, try [DiskWarrior|http://www.alsoft.com/DiskWarrior/index.html] or [TechTool Pro|http://www.micromat.com>. I'm not sure what this "testdisk" software is, I've never heard of it.
    If these three utilities are not able to repair the drive, there's no repairing it. Your only choice will be to use a data recovery tool, like [Data Rescue|http://www.prosofteng.com> or [File Salvage|http://subrosasoft.com/OSXSoftware/index.php?mainpage=product_info&productsid=1]. If those don't work, you'll have to pay the big money for a data recovery service.
    Of course, all this could have been easily avoided. You MUST have backups of any data you don't want to lose! If you had a backup, you could have simply erased the hard drive and restored from the backup. For the future, see my [Mac Backup Guide|http://www.reedcorner.net/thomas/guides/backups> for assistance getting started with backups.

  • How to send pdf files from local dir through emails attachments

    I have some pdf documents in some directory, I want to send those pdf's as an attachment throu emails to the concerned person.
    Please let me know how to attach the files and send through email.
    Thanks.

    You are using Forms 4.5, which is a client/server configuration. When you create a pdf file, the file has to be written to a directory that is accessible from your PC. D:\ is acessible, /tmp/ not (that is a directory on some Unix server). If you want to write files to a Unix server, you have to set up Samba and map a drive from your PC to he Unix directory.
    Since you are creating multiple pdf files, you will have to wait until all reports are finished and mail them afterwards. You can create a batch script to mail the files.

  • Cant access files from Mavericks Partition

    I have OS X Lion and Mavericks installed on the one SSD of my MBP. I want to access my music, pictures, movies and so fourth from my Mavericks Partition on my Lion one. But whenever I goto the Mavericks partition folder there are all these small stop signs on each folder, denying me access. I have tried right clicking and going to share and allowing all users access. But this doesn't work. And suggestions on how I can access the data on both OSs??

    Generally, that's what you see when accessing files stored under a different User name. Are you using the same User name for both partitions? I always use the same user name for different OS X partitions.

Maybe you are looking for