Can't tell when i have reached the end of the file

Hi i'm trying to read a character at a time from a file but i can't tell the program when to stop when it has reached the end of the file
THis is the code
BufferedReader br = new BufferedReader(new FileReader("input_dat.txt"));
while ((c =(char) br.read()) != .....what should go here...)
     System.out.print((char)c);

i got it to work
hear is the code if anyone is interested .
int i= 0;
char c;
BufferedReader br = new BufferedReader(new FileReader("input_dat.txt"));
     while((i=br.read()) !=-1)
     c =(char) i;
     System.out.print((char)c);

Similar Messages

  • I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    theres no - in "itunes" its all one word
    try right clicking and running itunes as adminstrator or try on a different user account

  • Help!  How do I download software for a HP Laserjet Professional P1100? I keep getting the same message when I have downloaded the file "Your security preferences allow installation of only apps from the Mac App Store and identified developers" Help!

    How do I download software for a HP Laserjet Professional P1100? I keep getting the same message when I have downloaded the file "Your security preferences allow installation of only apps from the Mac App Store and identified developers" Help!

    You can change the settings in Security & Privacy to "Anywhere"...
    That should work... as to whether the printer driver will work, that's another question.
    Good luck,
    Clinton

  • HT201413 How can I tell when i have to restart to factory ? What would make it happen to do this ?

    I was all working fine ...then about a week ago it showed a iTunes Circle with the arrow pointing up tto it I hope i didnt loose all if mu info ....I really need the pics and other things ...Could someone have done somehing to it ? Like hru Windows. Internet Emploer , Microsoft ...ect. ??  Please help me ...I am a a loss ...I am jus reading ur article on APPLE now ....Jus wonder if someone else coulg do this to me >    TY <3

    Put the message in the Trash and then empty the Trash.

  • ITunes Match info says"With iTunes Match, you can download some or all of your music directly from iCloud on a total of up to 10 devices and computers." but when I try to add a computer it tells me i have reached my maximum of 5 computers.

    iTunes Match info says"With iTunes Match, you can download some or all of your music directly from iCloud on a total of up to 10 devices and computers." but when I try to add a computer it tells me i have reached my maximum of 5 computers.

    You have old computers authorized that you are no longer using more than likely.
    From http://www.apple.com/itunes/features/
    Authorize and Deauthorize
    Purchases you make from the iTunes Store can be played on up to five computers that you authorize using your iTunes Store account name and password. To authorize or deauthorize a single computer, choose Authorize This Computer or Deauthorize This Computer from the Store menu. If all five authorizations are being used, you can deauthorize all your computers at one time by choosing View My Account from the Store menu and selecting Deauthorize All.
    You can then restart the authorization process with each current device.

  • TS3694 Why can't I update my iPhone 4 to iOS 5.1? Every time I try it gets all the way done downloading it; however when it's processing the file the page tells me "There is a problem downloading the software for the iPhone. Network connection timed out.

    Why can't I update my iPhone 4 to iOS 5.1? Every time I try it gets all the way done downloading it; however when it's processing the file the page tells me "There is a problem downloading the software for the iPhone. Network connection timed out. Make sure your network settings are correct and your network connection is active. or try again later." and next to the file it has err = -3259. I have tried this 17 times and it won't work. My iTunes is completely up to date. I have made sure that my connection is fine and I have tried turning my firewall off with no avail. This has happened to me before but usually the update will go through after 2-3 tries, never to this extent. I don't know what to do. Help!

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

  • I have tried to load iTunes Match onto my computer but it tells me I have reached my 5 limit. I do not have 5 items however I did have one of them stolen. Please can anyone help me to find out what is being counted as my 5

    Please can you help me?
    I have tried to load iTunes Match onto my mac Pro but it tells me I have reached my 5 limit. I do not have 5 items with iTunes match on them so I am confused.
    I have two iMacs a phone and iPod and want to put match onto my pro. Is there anywhere I can go to see which items are actually on there?
    We had a burglary last year and did have an iMac taken is it possible I can see if that is one of the 5 and if so how and where do I look and how can I remove it?
    I will be so grateful if anyone can please help me.
    Many thanks Helen

    In your Itunes account.

  • HT4863 i am receiving a message that i have reached the maximum number of messages i can send out today but i have not even sent 5 emails out yet today ?

    i am receiving a message that i have reached the maximum number of messages i can send out today but i have not even sent 5 emails out yet today ?

    I'll add that this can happen when snapshotting is used as a backup method. You can set max endpoints to 32 and still see the issue. Please ensure that you're backing up using the supported PowerShell commands: http://technet.microsoft.com/en-us/library/hh202170.aspx
    and not just a snapshot of the VM. If raising max endpoints does not resolve the issue, try backing up with the management shell commands within a recurring scheduled task or try http://gallery.technet.microsoft.com/office/Backup-script-for-Lync-2013-aacbb9b9
    . Then disable the snapshot ting for your front ends, bounce them one at a time, and ensure the data exports you've made are backed up as flat files.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • How can i reset my ipad when i have lost the code

    how can i reset my ipad when i have lost the 4 didgit/number pass code

    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

  • Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • Can someone tell me how many seconds the cross fade is when running your nano in that mode? I teach spin class and want to know how much time I'm losing in that mode.

    can someone tell me how many seconds the cross fade is when running your Ipod 6th Gen nano in that mode? I teach spin class and want to know how much time I'm losing in that mode.

    You aren't losing any time in that mode, but I believe it is a 10 second fade out/fade in.

  • I have create many free acounts for apple I have reached the limit of creating free acounts how can I delete that free acounts which I have made?

    I have create many free acounts for apple I have reached the limit of creating free acounts how can I delete that free acounts which I have made?

    iOS devices can only create 3 free iCloud accounts, Get a new iOS device
    why would you need more than 3 iCloud accounts for 1 device o.O

  • Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    FormsCentral can be used from anywhere, but to purchase a subscription you need a credit card with the mailing address in one of the countries supported for purcahse:
    http://forums.adobe.com/docs/DOC-1375
    The partner can purchase if they have access to a card in one of those countries.  Alternatively they do not need to purchase a subscription to edit forms that you've created, they do in order to create multiple forms of their own, but by your sharing forms with them at the "Co-author" level they have access to the editing.  Here are the instructions to share a form:
    http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Josh

  • Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do no

    Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do not get an installation screen or a chance to enter the Licence no.

    Use another browser.
    Mylenium

  • How can I turn off the option in my message settings so that others can not tell that I have read there texts? Please HELP

    How can I turn off the option in my message settings so that others can't tell that I have read there message I have an iphone4 updated to the 6ios

    Set Settings->Messages->Send Read Receipts to Off.

Maybe you are looking for

  • Purchase Requisition(MM) created from Maintainance Order(PM)

    The scenario is that when we are creating a Work Order from IW34 then PR(ME51N) is created in background against that Work Order. We have a workflow attched to the the ME51N/52N transaction in which we are checking the valuation price for the item an

  • **Does the neo platinum support registered memory?**

    Here is the RAM i bought (and have now RMA'd to newegg) http://www.newegg.com/app/viewProductDesc.asp?description=20-145-470&depa=0 here is my problem !HELP! Comp wont post! is it because my RAM is registered that my comp wont post with it installed?

  • User in multiple groups gets multiple copies of one mail

    I have a user who is the manager in a department with multiple groups in it.  There is an email group in eudora set up for each administrative group (logical), and the manager's user is in each of those groups (also logical).  Frequently it will be l

  • ActiveSync Quarantine Administrator Email Changed - No ECP Link

    For some reason the emails generated by the Exchange 2010 servers when a mobile device is quarantined have changed. We now no longer have the clickable link to open the device within the ECP. Old Email The Exchange ActiveSync service has quarantined

  • Best Audio Interface for Macbook Pro

    Hey I'm looking into getting a new Macbook and wondering what the best option for portable audio interfaces is... I know RME has a PCI card that might be able to work... I'd like to avoid using the firewire bus because I'd like to use FW drives fairl