File open

this is in c++,
CFile File;
File.Open(FileName, CFile::modeRead|CFile::typeBinary|CFile::shareDenyNone)
similarly i want to use in java. I tried using FileInputStream but reading data is different what should i use for typeBinary mode file?

FileInputStream. FileReader is it's not binary.

Similar Messages

  • Photoshop CS4 Crashes on File-Open

    After using Photoshop CS4 for 9 months, I now get an instant crash whenever I open an image with File-Open. I see the image I wanted to open for a few seconds at the back of the error message (1st screenshot, below) and then it disappears - on clicking OK on the first error message, I get a second error message (2nd screenshot, below). I upgraded to version 11.0.1 - no difference. I have completely uninstalled all plug-ins - no difference. I have completely uninstalled and then reinstalled Photoshop to version 11.0 - no difference. I have upgraded a clean install to version 11.0.2 - no difference. I have deleted the prefs file - no difference. I deleted a set of new fonts I had installed after reading a thread on this forum - no difference. Occasionally, I CAN open a file from Windows Explorer with the right-click menu Open With... Adobe Photoshop CS4 then, after doing that, FIle Open does not cause a crash for opening one file, sometimes 2 but then I get the crashes again until the next time I run Photoshop but it seems random as to when it will open a file or not.
    I am now considering uninstalling all Adobe products, manually clearing out the registry and then trying another install but all this is taking time I don't have.
    Does anyone have any other suggestions I could try. I am getting desperate!
    Thanks in advance for any help you can give.

    Memory address issues can be tough to track down. Often, they will occur when a program either mis-reports the memory addresses used, or tells the OS that it has released them, when it has not.
    Though written with video editing in mind, there still might be some tips for setting up your computer, in this ARTICLE. If you have Win7, please look down-thread for Black Viper's tuning page.
    Now, Adobe programs have always been great at reporting their memory usage, but it could still happen - I've just never encountered it over the decades.
    Good luck,
    Hunt

  • Trying to create a Photomerge in Bridge, when the files open in Photoshop ( small jegs ) , I get a error message of " Unable to process latte files " / " null is not an object "

    Trying to create a Photomerge in Bridge, when the files open in Photoshop ( small jegs ) , I get a error message of " Unable to process latte files " / " null is not an object "
    Please help

    Wait a second, Photoshop can make lattes now?  Personally I prefer my coffee black, but man have I been under-utilizing this program.

  • Adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?

    adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?
    I want the capability of adobe reader to just run on one screen.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • I have recently updated my CC programs to the latest version and now all of my files wont open by default into their respective programs, only if I open the program and go to file open and open the file from there. How can I fix this?

    I have recently updated my CC programs to the latest version (CC2014) and now all of my files wont open by default into their respective programs, only if I open the program and go to file>open and open the file from there. How can I fix this?
    I have tried 'Open with' and the version of the program now installed on my computer isn't even suggested as an option and when I browse for it, the file wont open with it anyway

    On Windows (don't know about Mac), the latest version will always take over the file association, and become the default for indd files. It's impossible to change it.
    But there is a plugin for ID that makes this possible. Never tried it myself.
    https://www.rorohiko.com/wordpress/downloads/lightning-brain-soxy/

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • Launching file open dialog box in Forms 6i

    hi,
    We have to launch file open dialog box using forms 6i within oracle apps
    and store the file into the database.
    Any ideas?
    Thanks,
    AZ

    Hi azodpe
    i have a solution(Source Code) plz give me ur email address
    i ll mail u later.
    Khurram

  • File Open Dialog Box

    Under my install of Vista Enterprise on an AD network, I'm am not getting the "computer" option to access local and network drives when I select "File/Open".  All I get is the redirected "home" directory for that user.  True for all Adobe applications (have the latest Creative Suite 4).  Other Windows apps using Windows file/open dialog box can get to the network.  Tech support said I should have an option to select the OS dialog box, but I do not see that on my install.

    In Edit > Preferences > File Handling, uncheck "Enable Version Cue".  This is where you will find it in CS4; earlier versions may have slight variations.  In some versions, you may also get a checkbox in the file open dialog (down at the lower left, as I recall) that lets you select OS dialog or Adobe dialog.   Also, in Bridge (again CS4), go to Edit > Preferences > Startup Scripts, and uncheck Adobe Version Cue CS4.  (I have this unchecked, and even with Enable Version Cue checked in PS I don't get the Adobe dialog or the option to set it, so the setting in bridge seems to be the master.)

  • File Open Dialog Box Hiding Behind - Urgent

    Hi All
    We have write code for Opening File in File Open Dialog Box. But its stays in inactive mode behind SBO. Once we press ALT +TAB only then we can see it. How to Activate it or make it visible automatically in SAP Business One.
    The Code for Opening File we have written is in C#
    <b>OpenFileDialog objOpenFileDialog = new OpenFileDialog();
    objOpenFileDialog.InitialDirectory = System.Windows.Forms.Application.StartupPath + "
                        objOpenFileDialog.Filter = "Excel files (.xls)|.xls";
                        if(objOpenFileDialog.ShowDialog()!= DialogResult.Cancel)
    string ExcelFilePath = objOpenFileDialog.FileName;
    }</b>
    Thanks in Advance
    Asutosh

    Common problem... Do the following instead.
    System.Windows.Forms.Form form = new System.Windows.Forms.Form();
    form.TopMost = true;
    OpenFileDialog objOpenFileDialog = new OpenFileDialog();
    objOpenFileDialog.InitialDirectory = System.Windows.Forms.Application.StartupPath + "\";
    objOpenFileDialog.Filter = "Excel files (*.xls)|*.xls";
    if(objOpenFileDialog.ShowDialog(form)!= DialogResult.Cancel)
    string ExcelFilePath = objOpenFileDialog.FileName;
    That should do it

  • File Open Dialog Box  on Button Click

    Hi
    I am devloping some webpages using JSF and RichFaces..
    I would like to appear File open Dialog box to choose single file and multiple files and another Folder chooser dialog box to choose the folder content..
    Both the operation should be performed while choosing the Button Choose File and Choose Folder...
    I have already tried Input type = file and aphace tomohawk..
    But i all the components are coming with text box and browse button..
    I dont need that. I need to open the dialog box once i clilck my choose file r folder button and it should work browser indepent.....

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • File open dialog box broken in all apps! ( 10.5.6/7

    Hi, I've got a very odd problem that Apple phone support seem to be unable to solve.
    Basically, every file open dialog box system wide is broken, from file->open in textedit to the browse button on websites for uploading files.
    When trying to display this finder panel, it beachballs for ten seconds then gives me a grey area where the usual finder browser usually resides and the open / cancel buttons at the bottom of the panel.
    I've repaired permissions which had no effect.
    The finder works perfectly other than it's little file open dialog which other applications use...
    Updating to 10.5.7 did nothing to fix the issue.
    Does anybody have any idea how to resolve this?
    Thanks!
    chris.

    V.K. had you create another user to eliminate the possibility that it is a preference file causing the problem. It was reported the problem remained with another user, so the problem is system wide, not with a single user's preferences.
    The Archive & Install is relatively painless. It only replaces the system and leaves everything else untouched. What is replaced is saved in a new folder it creates named Previous System, in case there is something there you might want to bring back (most often 3rd party files, but I have never needed anything from the Previous System folder).
    The only hassle with the A & I is resetting preferences. If you check the option during the A & I to retain user settings, there is usually not very much that needs resetting.

  • Save As / File Open dialog boxes too large to use on laptop

    I have a Macbook Air and am using one of the new Apple LED Cinema Displays, although this problem was also present when I was using my older Apple Studio Display.
    The problem is that some of the system dialog boxes, notably File Open and Save As are huge when I am just using my Macbook with no external screen. They are so big i cant see the lower right drag handle and make them smaller and cant access buttons at the bottom like "New Folder".
    I think this is because I resized the dialog box when I last had my large external monitor connected and now that it is not connected (I'm at home on holiday not at work) I cant find a way to make them reset to their normal size.
    Does anyone know anything that would help? I've had a good search online and also in these forums and havent found anything - but apologies if I've missed an existing open thread.
    Thanks,
    Glenn.

    This did not work for me - and in my case it was the "Export" Save As sheet in Keynote. There is a real solution for this problem. Firstly all user 'preferences' and these are things that include not only preferences set in the application's preferences window but also window position, size, recent items etc. are stored in the preferences .plist file for an application (stored in the users account Library folder) . If an application starts to behave strangely, crashes on start etc. deleting this file while the application is NOT running can often fix a problem. So if a window is in an unusual location or partially off-screen then trashing the file often will fix the problem (BTW - if you are unsure how to find the file activate the Finder and select the "GO" menu -> "Go to Folder" and type ~/Library/Preferences - make sure you are not in the System's preferences folder - deleting these items is typically bad...). Preference files for an application are typically named com.companyname.programname.plist. So for Keynote the plist is com.apple.keynote.plist. Preferences are recreated when the application is launched. Often though this is a bit extreme. If you double click a plist file the "Property List Editor" application will start (at least if you have the developers tools installed - all free and on the Leopard DVD - with a free Apple Developer ID you can also run the most up to date version pre-snow leopard). In the plist editor all of the various options available in the program are listed - ones from the preference panel and other application information. In the case of Keynote (possibly other apps - I haven't checked) the NSNavPanelExpandedSizeForSaveMode key stores the size of the Save/Save As sheet. I downsized from a 17" MBP to a 15" MBP and the string size for this was 682 wide by 843 tall in pixels - my screen is only 900 px and once you consider the space needed for the application menu bar and tool bar the dialog buttons were 'just' barely visible - tauntingly so. I dropped the height to 743, saved the plist and reopened Keynote (remember to edit these while the application is not running - and always save a copy first before editing the file). This worked for me perfectly and unlike other suggestions here provides precision control. Now having said that 1) these files are XML and can be edited using a text editor but the plist editor is much prettier; 2) typically the keys are named using their appropriate Coca names for the property - but each developer can and does write their own code often deviating from Coca - hmm MS, Adobe come to mind - so remember that its good to read through the plist and Google to make sure that you are editing the correct information; 3) plists are automatically recreated if you really screw-up and need to delete - unfortunately in doing so Word will forget that no-one actually likes "when editing automatically select the whole word" so you will need to redo all of those kinds of preference tweaks.
    D.

  • Crystal Report 2008 File Open limit

    In Crystal Reports 2008 when selecting File > Open > Enterprise  The number of files listed in each directory looks to be limited to around 25 files.
    If I have a directory with more then that number of files, I have to move the file to another folder or rename it (using CMC) so it shows up in the first bunch of files if I want to open it.
    Is there a way to increase the number of files shown in the Enterprise window?
    Thanks

    Hello,
    Not exactly clear what you want? Save your reports to your D drive would be my first guess.... If you are referring to the \temp folder then change your system Environment Variable from the default to d:\temp and also change the TMP to d:\Tmp.
    You could even set your Swap file to d drive also. I suggest you contact your IT department or search Microsoft's site on how to optimize hard drive space when it's limited. PLEASE back up everything first before making changes to your swap file location, if you don't do it right you may not be able to start windows.
    Thank you
    Don

  • Office for the Mac - file open slowness, freeze, or crash

    When I select the File - Open window, any of the Office programs take a few minutes to display all of my files in the Documents folder. When they are finally displayed, any attempt to scroll through the list or go to a specific file results in the Mac's spinning wheel being displayed. Quite often, nothing happens after the wheel stops spinning. Sometimes, it just continues to spin. Consequently, it is almost impossible to use the File - Open window in Office to select a file to open. The only way I can do so is to use Finder to display my files in the Documents folder and then selecting them in that program's File - Open window.
    When the wheel is spinning, Force Quit says that the specific Office program being used is "not responding." Usually, I use Force Quit to close down the Office program if it has frozen, crashed, or been slow using the File Open window.
    I spent an hour yesterday with Microsoft Support on the problem. The conclusion of the tech was that I had too many files in my Documents folder. I pointed out that other programs such as FileMaker Pro didn't have this problem. The tech's response was that Office has to scan the entire Documents folder every time the File Open window is opened, but that FileMaker Pro stores a list of the last files in the Documents folder and doesn't rebuild the list every time.
    I am skeptical of this "answer." The problem didn't exist until a few months ago.
    My computer is a MacBook Pro 2.3gHz with 16 GB of RAM and a 750GB hard drive which has about 500GB free. This is a fairly fast machine with a Geekspeed of 10688. I was running the latest Mac OS Yosemite 10.10.1. The problem first surfaced with Office for the Mac 2008 about 3-4 months ago running Mac OS 10.10.1. I installed Office 365 yesterday, and and Mac OS Yosemite 10.10.2 today, and nothing changed.
    The only solution that I know of is to take a lot of time to segregate my files in the Documents folder into more subfolders (I already have quite a few). That I am loath to do, because the solution doesn't work very well. It takes about a minute to select a subfolder in the File Open window, and then about another 30 seconds before Office allows me to scroll through a relatively small number of files (e.g., 100 files) in the subfolder.
    When this question was posted to the Microsoft Community, I was directed to an article talking about problems with Office and Mac OS. None of the solutions worked, probably because the article considered only Office X and Office 2004 for the Mac and OS 10.2 and 10.3.
    Help, please!

    1) Verify that Office is fully updated. v14.4.7
    2) I suggest you run Font Book and vailidate your Fonts. Microsoft installs duplicate fonts and after you clean up your fonts, this has often fixed odd issues with Office.
    Office 2011 Duplicate Fonts to Delete
    3) Delete the com.apple.LaunchServices file in your User's Library/Preferences folder. Log out under the Apple in the Menu bar and test. More info
    If this fails to fix....
    Testing in a new User will quickly tell you if the problem is system wide or if it's your User's folder that contains the problem.
    Put a few test files in the Shared folder. Data in the Shared folder can be accessed by another User. When you "Switch Users", you can access the files in the shared folder. After you log into the new test User, drag from Shared (it actually copies). Put the test files in Documents.
    Open Word. It won’t be in the Dock in the new User. Go to Applications to open.
    Do you still see the issue?
    If yes, you can eliminate the number of files in your Documents folder.
    If no, then you might want to do a clean up in Documents.
    *Remember to drag files back from Shared when you log into your main User.
    **(Fair disclosure: OfficeforMacHelp is my site. I may receive some form of compensation, financial or otherwise, from links on my site.)

  • CS5 can only open images from file open

    I've done some googling/forum searching to no avail so far. Entering my exact error only directed me to some twitter statuses, so I'm hoping someone will be able to help.
    Basically, CS5 gives an error if I try to open images by: dragging from finder, double-clicking from thunderbird, using the edit tool in Acrobat Pro, double-clicking in Bridge and probably a number of other situations.
    As the topic states, it only seems to be able to open files via File > Open (Open Recent also appears to work). Other than that, CS5 appears to be working normally. It's more of a nuisance than anything, but it's disturbing my workflow quite a bit, so that's why I've decided to post about it.
    Now here's the kicker: This new development seemingly coincides with installing some drivers (that's assuming they are called drivers in the OSX world) for a Lexmark 654de scanner/copier we just had installed here at work. I searched the computer for "lexmark" hoping I could trash some related files but literally nothing shows in the results.
    You may argue, genuinely, that I should be posting this on some kind of Lexmark forum, and I may end up doing that. I assume a forum of photoshop users to be more helpful than Lexmark support forum if they even have one, though.
    Error Text is as follows: The document "whatever.jpg" could not be opened. Photoshop cannot open files in the "Adobe Photoshop JPEG file" format.
    Insert TIF for TIF files, PDF, etc. It seems to happen to all the common filetypes I use. Neither InDesign nor Illustrator are experiencing similar issues (if that helps).
    Standard infomation:
    Adobe Photoshop CS5 version 12.0.2 x64
    Mac OSX 10.6.6
    8GB RAM
    952.98 GB Free Space
    512mb ATI Radeon HD 5670
    Lexmark 654de scanner/copier/fax machine could be related to the problem
    Thanks for reading and offering any advice you may have.

    This is a long shot but try going to Preferences/Type and uncheck "Show Font Names in English".
    Quit illustrator and restart, does it work now?
    The reason I´m suggesting this is that unless I have this box unchecked, some internal function in illustrator crashes after I´ve opened one document and I have to quit & restart if I wan´t to open another one. A rather silly bug and I stumpled upon the solution by accident after cursing illustrator for a couple of months...

  • I cant edit an CS4 file open in CS6. Colours, Most of the tools are in-active

    I cant edit an CS4 file open in CS6. Colours, Most of the tools are in-activeC

    once is enough to ask. Editing problemCS6

Maybe you are looking for

  • How do I download Adobe Acrobat

    How do I download Adobe Acrobat?

  • DB Connect: Data displayed without authorisation check

    Hallo Guys, I just set up a DB connect for viewing some data from an Oracle database. When I want to view 1 table (Source system-> DB-connect->Select database tables -> Display table content), a message is displayed in GREEN 'data is displayed withou

  • IPhoto Zooming Question

    iPhoto Zooming - I just upgraded my Macbook Pro and even though I have my thumbnails on the largest size in Zoom when I click on a photo it reduces it to the smallest possible in Zoom and I have to manually increase the size of each photo I want to l

  • HTTP Acceptor Thread Monitoring

    I'm attempting to monitor the HTTP Acceptor Thread pool in a Production environment. JMX Monitoring threshold has been set to HIGH but I still can't seem to find the pool monitor. I see HTTP Listener Threads, but not acceptor thread monitoring. Is th

  • Triggering a NI-5112 board on composite video sgnal

    We have to test a composite video signal coming from a DVD with an 5112 digitizer board. We should find an easy solution for triggering on certain positions in the video signal (such as a particular row in the picture) Do you have application ideas o