How can I get to read a large file and not break it up into bits

Hi,
How do I read a large file and not get the file cut into bits so each has its own beginning and ending.
like
1.aaa
2.aaa
3.aaa
4....
10.bbb
11.bbb
12.bbb
13.bbb
if the file was read on the line 11 and I wanted to read at 3 and then read again at 10.
how do I specify the byte in the file of the large file since the read function has a read(byteb[],index,bytes to read);
And it will only index in the array of bytes itself.
Thanks
San Htat

tjacobs01 wrote:
Peter__Lawrey wrote:
Try RandomAccessFile. Not only do I hate RandomAccessFiles because of their inefficiency and limited use in today's computing world, The one dominated by small devices with SSD? Or the one dominated by large database servers and b-trees?
I would also like to hate on the name 'RandomAccessFile' almost always, there's nothing 'random' about the access. I tend to think of the tens of thousands of databases users were found to have created in local drives in one previous employer's audit. Where's the company's mission-critical software? It's in some random Access file.
Couldn't someone have come up with a better name, like NonlinearAccessFile? I guess the same goes for RAM to...Non-linear would imply access times other than O(N), but typically not constant, whereas RAM is nominally O(1), except it is highly optimised for consecutive access, as are spinning disk files, except RAM is fast in either direction.
[one of these things is not like the other|http://www.tbray.org/ongoing/When/200x/2008/11/20/2008-Disk-Performance#p-11] silicon disks are much better at random access than rust disks and [Machine architecture|http://video.google.com/videoplay?docid=-4714369049736584770] at about 1:40 - RAM is much worse at random access than sequential.

Similar Messages

  • How can I get my MacBook to stay on and not sleep when lid is closed?

    How can I get my MacBook to stay on and not sleep when lid is closed?

    try this: http://www.macupdate.com/app/mac/37991/nosleep

  • How can I get my Imac to operate faster and not get hung up so often

    My Imac is very slow-How do I clean it up and get it to operate faster?

    Max out your RAM and clean up your login items.
    How large is you HD and how much space do you have left?
    Which OS is currently installed?
    Quick fix How To Quickly Free Up Hard Drive Space on Mac OS
    http://www.youtube.com/watch?v=fO-mlLApEuk
    ======================
    Empty the trash in the Dock as well as iPhoto’s trash!
    Open up your application folder & go through all your apps.  Trash all the apps you no longer want and/or use.
    An easier way to do this is to open the Application folder in list view & press the Command+j keys.
    In the the dialog that appears, click the "This Window Only" button & the "Calculate All Sizes" check box.
    Wait a bit until your file & folder sizes have all been calculated, then click the "Size" column to sort your apps from the fattest to the most anorexic.
    Get rid of all your photo files you don't want and/or need.  Same goes for those pics off the websites you downloaded (gifs, jpegs, etc.).  Or transfer/move them all to a photo/movie storage site like ImageShack and Photobucket, 2 of the most popular  FREE  storage sites.
    Get rid of all your video & music files you no longer view and/or listen too.  Especially, if you already have the actual CD/DVDs or you can later redownload from a website.  Or transfer them all to a FREE video/movies and/or music storage site.
    Use Spotlight to make sure you got rid of everything.  You can even trash directly from Spotlight!  Better yet, download this FREE software called Find File.  This app puts Spotlight to shame (works w/Mountain Lion).
    Drag what you don't want and/or need to the trash.  Better yet, download this neat little shareware app *demo* called AppZapper.  It basically does all the work for you by not only trashing the apps but the apps preference files, caches & all its associated files.
    Another software that does the above is AppDelete.  Best of all this software is free!
    Burn what you want and/or need onto CDs or DVDs. Not everyone has the  luxury of purchasing an external HD and/or the system requirements for iCloud to store their "stuff.”
    Dropbox is a free storage utility to check out.
    You can check with your ISP to see if they offer *free* storage space.  Most if not all do now-a-days.   There are thousands if not millions of *free* storage facilities on the web also.  Use your favorite search engine to search them out as they come in different storage sizes to fit your needs & wants.
    Check for duplicate fonts.
    Applications>Font Book
    Select “All Fonts”
    If you see any “black dots” next to any fonts this mean you have duplicates and/or multiple versions of these fonts.
    To clean this up, select a “black dotted” font or the Apple + *click* to select multiple dotted fonts;
    Edit>Resolve>Duplicates.
    What the above does is turns off the duplicates & multiple version fonts.  Not delete them.
    More than likely the “extras” were installed by other programs and/or other users.
    Clear out font caches
    Use FontNuke.  It does all the work for you.  And, best of all it’s *FREE*.
    Printer Drivers
    Get rid of all the printer drivers you don’t need & use except the ones for your *current* printer(s)/scanner(s).
    HD>Library>Printers Folder
    If you accidently threw something out that you needed for your printer/scanner it can be easily obtained from the manufacturer’s website and/or from the CD that came w/the printer/scanner.
    Garage Band
    Has about 1GB of loops stored.  Get rid of some some them.  You surely don’t use, like and/or need them all.
    HD>Library>Audio/Apple Loops>Apple>Apple Loops For GarageBand
    Or just get rid of the Garage Band app altogether if you don’t use it.
    Get rid of extra languages
    Strip your computer down to your “native” tongue.
    You can do this with a *FREE* utility called Monolingual.  Another app that apparently does all the work for you.  I’ve never used it.  However, a lot of users here swear by & recommend it highly.
    However, there is a warning for *native English speakers*. Make sure you keep BOTH English and English (United States).
    Other Resources:
    HD Space Checkers:
    Disk Inventory X (FREE)
    WhatSize (SHAREWARE)
    OmniDiskSweeper (FREE)
    GrandPerspective (FREE - donation)
    Mac Performance Guide
    Slimming your hard drive
    Rule of thumb: You should never let your hard drive get to where you have only 10-15% of space left.

  • Had to reset computer and my itunes is empty. have 7448 pictures on ipod. How can i get them back onto my computer and not delete them?

    Desparate to know if I can get my photos which were synced onto my ipod classic.Now I have lost all the data from my computer and want to put the photos back onto computer. I know if it is synced it will delete everything. I have gone into itunes on my computer and ticked the box to prevent automatic syncing but I still am too nervous to connect up.

    You'll need the help of 3rd party software to extract the photos from your iPod to your computer.  Google will be your friend on this one.  I can't recommend any particular ones.
    Keep in mind that the photos on your iPod are no longer in full resolution, but instead are now scaled down versions created by iTunes during the sync process so that the resulting photo would be optimized for viewing on your iPod classic.
    B-rock

  • 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

  • In Yosemite, How can I get the "READER" button back in the Tool Bar at the top of the screen

    In OS X Yosemite,
    How can I get the "READER" button back in the Tool Bar for Safari at the top of the screen ?
    Thanks,

    I don't see the "READER button".
    I see "READ LATER" but not the "READER" function.
    Maybe I'm doing it wrong.
    Please continue to HELP ME with this question.
    In the previous version of Safari, there was a "READER Button" on the right side of the tool bar. This brings up the selected web page in a READER mode all by itself, without the ads, etc.
    Are you saying that I can get this function by clicking on the Left side of the Address bar?
    When I do that, I get lots of icons, but NOT the READER button.
    Thanks

  • How can I get Acrobat Reader X to send my pdf to the printer?

    My pdf just looks at me while I push all of the buttons, file menus and keyboard shortcuts associated with printing and it does nothing. No dialog box, no nothing. All three of my printers work and i've tried them all. It just doesn't do anything. Any suggestions? I really need help here.

    From: Pat Willener [email protected]
    Sent: Monday, July 30, 2012 9:16 PM
    To: vinniereed
    Subject: How can I get Acrobat Reader X to send my pdf to the printer?
    Windows 7; Acrobat Reader 10.0; local and online.
    Thanks,
    Vinnie
    Re: How can I get Acrobat Reader X to send my pdf to the printer?
    created by Pat Willener <http://forums.adobe.com/people/pwillener>  in Adobe Reader - View the full discussion <http://forums.adobe.com/message/4588698#4588698

  • I always have trouble with my mailbox. It is always asking for my passwords but everything has been verified. How can I get it to stop doing it and start working????

    I always have trouble with my mailbox. It is always asking for my passwords but everything has been verified. How can I get it to stop doing it and start working????

    There is only one thing that happens -- the Server does not respond.
    Your mac concludes that you must have entered the wrong password. That may happen once, but then other issues become more likely, and it keeps asking for a new password.
    Sometimes the Server is down for maintenance. Sometimes something is configured wrong. Some services do this on purpose to get you to use WebMail (pick up your Mail with your Browser) so they can show you some ads.

  • How can I get the 2nd copy of my fiscal note? I live in Brazil and my iphone was bought in USA

    How can I get the 2nd copy of my fiscal note? I live in Brazil and my iphone was bought in USA

    What is a fiscal note? Contact the place where you bought your iPhone in the US.
    Warranty is valid only in US.

  • HT5500 how can i get "via iOS" in my postings and comments from my iPhone?

    how can i get "via iOS" in my postings and comments on facebook from my iPhone?

    I have the same issue.  NO "via ios" ONLY "via mobile"
    iPhone 4 - IOS 6.0.1
    iPad 3rd Generation IOS 6.0.1
    FB App installed both devices from Settings//Facebook/Install App using IOS FB Integration with my username/password.
    Troubleshooting Done to this point -
    Uninstalled FB on iPhone and reinstalled again using the FB in Settings/Facebook/Install App. Entered my username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using Cellular connection  (says via mobile).
    Turned Cellular off and posted connected to Wi-Fi  (says via mobile)
    Set iPad 3 back to factory default.
    Reinstalled everything fresh (did not use iCloud backup).
    Installed FB app from Settings/Facebook/Install App. and entered username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using 4G cellular connection.  (says via mobile)
    Turned 4G Cellular off and posted via Wi-Fi  (says via mobile)
    ALL of my posts from both devices show as being "via mobile". This is extremely frustrating since everyone else in the world seems to post status/comments/pictures/etc from their iPhones and iPads and get the "via IOS" except me.
    At first I thought maybe it was an iPhone 4 issue, but the iPad 3 is the newest version of iPad and even it says "posted via mobile" instead of "ios". 

  • How can I get a sim card for Japan and will it work with my locked Iphone 6

    How can I get a sim card for Japan and will it work with my locked Iphone 6

    You cannot use a SIM card on a carrier locaked phone, other than a sim from the carrier the phone is locked to. You must first get the carrier it is locked to, to unlock your phone. Apple does not unlock phones.

  • How can  I get rejected photos out of LR5 and off the HD?

    When I try to deleted rejected photos in LR5 on my iMac, I get a dialog saying they can't be sent to the trash.  How can I get unwanted photos out of LR5 and off the hard drive?

    Instead of hitting just the delete key, you need to hit ⌘+Del and one of the choices will be to remove from hard drive.

  • How can I get firefox to shut down automatically when not in use for an hour

    How can I get firefox to shut down automatically when not in use for an hour

    Sorry, there is no feature for that built into Firefox, and I haven't seen an add-on to add that feature to Firefox.

  • How can I get rid of a music file use in a menu?

    How can I get rid of a music file use in a menu? I try to get rid of it from the menu inspector but although I delete it there, it is still in use by the menu!
    it is not inthe audio window in the menu inspector but is still in use! wiered!

    Click on the menu with the audio, then look in the property inspector, under the 'general' tab.
    Towards the bottom there is the list containing the audio file for the menu - click on the file and use the '-' button in the bottom left corner of the PI...

  • I used my appleid on my husband's phone.  Our contacts merged and our phones both ring and he sees my texts. I deleted his contacts from my phone and they deleted from his phone also.  How can I get my appleid off his phone and restore his contacts?

    I used my appleid on my husband's phone.  Our contacts merged, both phones ring and he sees my texts.  I deleted his contacts from my phone and they deleted from his phone also. How can I get my appleid off his phone and retrieve his contacts?

    Teacher48 wrote:
    I used my appleid on my husband's phone.  Our contacts merged, both phones ring and he sees my texts.  I deleted his contacts from my phone and they deleted from his phone also. How can I get my appleid off his phone and retrieve his contacts?
    Bad mistake. You shouldn't have used your Apple ID on his phone. And you made it worse because now the contacts are gone, as you deleted them from your phone, they got deleted on iCloud. Your husband should have his Apple ID.
    There is really no way of recovering the deleted contacts unless you backed up using iTunes and even then you will only be able to recover those contacts that were on a call list. Read here:
    iTunes: About iOS backups

Maybe you are looking for

  • Unable to create followup activity in crm portal

    Hi All,   When we are trying to create a follow-up document for an activity all the fields are getting grayed out and we are unable to create any follow-up document.But from GUI we are able to create it successfully.  We are using CRM 5.0 I have give

  • VGA Splitter issue

    Hi there, new to this forum and am after some guidance. .. I have recently purchased a Mac Mini and wanted to connect it to two displays, one standard monitor and one LCD TV in the next room via a 5m VGA cable. I purchased a powered VGA splitter and

  • Waiting unknown threads to be completed.

    Hi all, Here is my issue: TaskRunner runner = TaskRunner.getInstance(); for(Task task : tasks) {         runner.run(task); System.out.println("Done!");Each task may (probably will) create one or more sub-threads... How can I ensure that, by the time

  • My ipod touch 5gen won't charge

         ok so my ipod 5gen was working fine until it said low battery... So I plugged it in then about 5 min later it turns off so I give it about 10 min to charge and it powers on like normal. So then after about 7 min it shutdown again. also when it i

  • HT4437 cannot see speakers in itunes

    my speakers have dissappeared in itunes,1 airport express , 1 bose soundlink Any ideas?