Question about accesing binary data

If I have a text file saved on my harddrive, how is it really stored? Can I access the raw binary data of the text file?

Oh ok so I get the ascii values of the text. No, you get the bytes in your file. Whenever you read, through Java or anything else, you get bytes.
The interpretation of those bytes as ASCII or Unicode or a Word file or an mp3 or whatever occurs after the bytes are read.
And I
take it that the pc stored the values as 1's and 0's.Huh? It's always just ones and zeroes that are stored. The letter "A" is never stored. It's just the binary pattern that corresponds to the number 65, which is interpreted in some contexts as a captial A.
So is 77k of text sotred as 77k of binary on my pc?The number of bytes you'll get this way is equal to the number of bytes in the file, with two caveats:
1) What I said in my last post about the file size potentially changing between checking size and reading.
2) File systems allocate blocks--usually 512 or 1K bytes, so if your file is, say 1600 bytes long, it might show up as 2k in in Windows Explorer, but the number of bytes read will be 1600.

Similar Messages

  • Question about Rescheduling Start Date of a Task

    Question about Rescheduling Start Date of a Task
    I'm trying to determine whether the 'Reschedule' action is appropriate to my situation...
    I have a service that consists of 4 tasks.  The first 3 tasks will be completed immediately and then the request's 4th task will sit in a queue for about a month so that all of these requests can be grouped together and fulfilled during a few overnight work sessions.
    While the 4th task is waiting to be fulfilled, the technician will be contacting the requestor to schedule the work to be done sometime during a 3 day window.  The technician needs to specify which of the 3 days each request will be worked on.  I'm not sure if I should store the date in a service form field or have the technician reschedule the task so that the start date of the task is set to one of the 3 days.  If I use the reschedule feature, are there any downsides?
    The advantage of using the reschedule feature is that the scheduled start date can be displayed in ServiceManager's task list and can therefore be sorted on and queried.  This wouldn't be possible if I stored the date in a dictionary field on the service form.  In that case, I'd have to use custom reports to group the tasks by start date.
    Please let me know your thoughts...
    Thanks,
    Scott

    This strikes me as a very good use of this feature, since your need to to have the date for this task rescheduled/reflected in ServiceManager. This is the specific effect of using this feature.
    For the benefit of others reading this post, remember: this rescheduled date will not change the due date for the service.

  • I wont to fix my old id account my email is  and when you whant to reset the password i dont recieve any email from apple id and when you answer question about your birth date it says not file is found.

    When i try and reset my id account it says it has been blocked for security reason. When you answer question about your birth date no souch record found and when i resset it by email io dont recieve any email from apple id reseat password. can anyone hep me ?
    <Email Edited by Host>

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312

  • A question about UDA and Data-Forms

    Hi all,
    I have a couple of questions about UDA. I am using Hyperion Planning 11.1.1.3m, and when I desing a Data-Form I would need to use the UDA I asigned for the Entity dimension: is that posiible?
    The other question is, when creating a Substiution Variable in Essbase I use the function @UDA (+dimension+, "MemberA"), but when using this variable in the Data-Form, it does nothing at all(in fact, it is been detected as an error). Why is that happening?
    Thanks a lot

    Use an attribute dimension to achieve what you are trying to do with UDA's in a data form. An attribute dimension will allow you to filter on members in the base dimension by a specific attribute the same way a UDA will. You can create the attribute dimension in the dimension editor in Planning by selecting the base dimension (Entity) and then select the custom attributes' button. Check the dba guide for a step-by-step approach.
    With regards to the subvar, are you trying to add the function as a value of the subvar when you create it in EAS? If so, this is not allowed. What are you trying to do with the subvar on the form? Subvars are supported in data forms as part of the member selection for a dimension. For instance, you can set up a subvar called CurYear and set the value equal to FY11 for the Fiscal Year dimension. In the data form you can set the member selection for the Fiscal Year dimension to CurYear. When the user opens the form, the member FY11 is returned.

  • Question about exporting FBL3N data in Pivot table format

    Dear all
    I have a question about the "exporting file" function of ECC 6.0.
    We started to use ECC 6.0 system, and it appears that we are no longer able to export "FBL3N data" to a local PC in pivot table format.
    Is there a way to do it?
    We used to be able to do so when the system is 4.6.
    I appreciate your support!
    Kind regards

    Dear:
                 You can do that. Execute report FBL3N with desired GL account in it. After when report has been executed right click on it. There will be an option Spread Sheet. Select all available format. In drill down select 08 (Excel in existing XXL format) and press OK. There you will get pivot table option for downloading., Hope this will help you resolve your query.
    Regards

  • Question about reading hex data

    Hello! I am a Labview Novice and having a problem about reading hex data.
    Basically I am having bytes from the serial port like this: "80100E0E0AB4F646F24A00911267087E032080057FFF "
    It is not encoded in ASCII. What I want to do is to convert the hex to an ASCII hex string.
    so that the string would become hex numbers in ASCII.
    I think the following might be a solution, but I have no idea what the subvi is in the solution.
    http://forums.ni.com/t5/LabVIEW/Hex-String-to-Ascii-Hex-String/m-p/886078/highlight/true#M400462
    Thanks in advance and I appreciate your kind help!
    Solved!
    Go to Solution.

    coolmatthew wrote:
    What I want to do is actually this.
    You are using way too much code for all this. All you need is a concatenate strings, replacing your entire loop and such. Same result.
    (see also)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HEXTwiddler.png ‏4 KB

  • Follow up question about interpreting smart data test on 160GB classic

    I posted this question regarding the problem I am having with my 160GB ipod classic:
    http://discussions.apple.com/thread.jspa?threadID=2153948&tstart=0
    It appears noone is able to help me, so I have found some more information:
    In short, itunes will not write to my 160GB ipod once it reaches about 35GB / 160. Windows will write to it, but only at 500KB/sec rather than the usual 19+Mb/sec. It just crawls once it hits that point. After following some advice online I came up with the following results using the HD tests in diagnostic mode.
    smart data test:
    retracts: 138
    rallocs: 563
    pending sector: 55
    poweron hours: 1016
    starts/stops: 267
    temp: current 26C
    temp: min 19C
    temp: max 53C
    and for the HDD spec test:
    sno: (not sure if i should post a serial number?)
    FW Revision: NB100-05
    LBAs: 0x12a19eb0
    These are the only tests that show up under the I/O HardDrive section. Should there be more? It seems like there might be from what I read, but I am not sure.
    Anyway, any help interpreting these results would be greatly appreciated.

    adame wrote:
    rallocs: 563
    pending sector: 55
    etc.
    Your drive is probably toast. Compare your SmartData stats with mine:
    Retracts: 844
    *Reallocs: 12*
    *Pending Sectors: 0*
    PowerOn Hours: 2037
    Starts/Stops: 830
    Temp: Current 29c
    Temp: Min 10c
    Temp: Max 50C
    I've only 12 remapped sectors and none pending. From the Wikipedia S.M.A.R.T. article:
    *Reallocated Sectors Count*
    Count of reallocated sectors. When the hard drive finds a read/write/verification error, it marks this sector as "reallocated" and transfers data to a special reserved area (spare area). This process is also known as remapping, and "reallocated" sectors are called remaps. This is why, on modern hard disks, "bad blocks" cannot be found while testing the surface – all bad blocks are hidden in reallocated sectors. However, as the number of reallocated sectors increases, the read/write speed tends to decrease. The raw value normally represents a count of the number of bad sectors that have been found and remapped. Thus, the higher the attribute value, the more sectors the drive has had to reallocate.
    *Pending sector count*
    Number of "unstable" sectors (waiting to be remapped, because of read errors). If an unstable sector is subsequently written or read successfully, this value is decreased and the sector is not remapped. Read errors on a sector will not remap the sector (since it might be readable later); instead, the drive firmware remembers that the sector needs to be remapped, and remaps it the next time it's written.
    I'm sure you'll find the counts go up if you try to do a surface scanning disk check. Sorry it's not better news but at least you know where the problem lies. Assuming your iPod is out of warranty it's probably time to get your iPod refurbished with a new drive or to buy a new iPod.
    tt2

  • Question about Index in data selection

    Hi experts,
    I am reading the documents about index today and find there are some questions confused me. Plz help, thx!
    1 What is the technical structure of index?
    For example, I have a table ztable with 5 fields, F1(key), F2(key). F3. F4.F5. If I create a index on F3,F4, the system will create a copy of this table. Is the structure of this copy as follow?
    F3, F4, pointer(for the lineno of the recorder)
    So this copy will have fewer lines than the ZTABLE and is sorted. If the DB optimizer choose this index in selection, it will be fast for the 2 reasons?
    2 By what is the sequence of the fields in the index determined? I read a BLOG about permance, the author make a example with DB05, and say if the distinct values of certain field is between 1-1000 lines, it is good to set a secondary index for the field.
    I wonder, if the F3 has only 5 distinct value for all the data in the ZTABLE, and the F4 has 100 distinct value. Which one should be the first field in the index and why?
    Thx!!~

    Hi,
    1 What is the technical structure of index?
    For example, I have a table ztable with 5 fields, F1(key), F2(key). F3. F4.F5. If I create a index on F3,F4, the system will create a copy of this table. Is the structure of this copy as follow?
    F3, F4, pointer(for the lineno of the recorder)
    So this copy will have fewer lines than the ZTABLE and is sorted. If the DB optimizer choose this index in selection, it will be fast for the 2 reasons?
    2 By what is the sequence of the fields in the index determined? I read a BLOG about permance, the author make a example with DB05, and say if the distinct values of certain field is between 1-1000 lines, it is good to set a secondary index for the field.
    I wonder, if the F3 has only 5 distinct value for all the data in the ZTABLE, and the F4 has 100 distinct value. Which one should be the first field in the index and why?
    You seem to be correct for some but not all.
    Struture of index will
    for unique key index F3, F4, row id of database
    it could have only one row id when your where condition match with the index then it goes to only index table first and read the row id and read record directly from the row id.
    But for non unique key table store all the F3, F4, row id of record which math value of F1 and F4. It can have multiple value.
    When your where condition math with condition partially ie left part of the key or whole part key then read all match record from the index table and then read the database physical table and check for addation where condition if any.
    Index is determine on basis of the where condtion which is most left part of index will match.
    if your where condition F4 and in your index has f3 f4 then index will not consider, It create gap between index condition and read whole table database. But if you consider f3 then only it consider the index to read because it match the left most part with index fields.
    For more details How to create secondary index ? Search for blog in sdn I reply many time.

  • Question about GG if Data Center Fails

    Hi i came across a question from my team about, what happens to Golden Gate replication when a data center failure occurs or an automatic switch-over to VCS cluster happens?
    Automatic switch-over to VCS cluster did happen in our environment once, when our NIC card was not working for our Primary server in Production VCS Config shut down the primary node and automatically switched over to failover node in VCS cluster.
    I am also looking into option what will happen to on-going Extract and Pump process on source? How will i be able to syncronize the residual data from source side to target side, if such things happen?
    Any comments or experience will help me.
    Thanks

    All of our filesystems on primary gets failed over to failover cluster node, like how it happens with database bins and data files.
    We have tested it and verified if we can start the Golden Gate after failover happens on failover node.
    Thanks

  • Question about zeroing out data...

    I'm currently zeroing out my Time Capsule's hard drive and starting fresh with backing up. I started doing a 7 pass method the other day, but figured it was overkill and bad on the hard drive, so I stopped it a quarter of the way through pass 2. Does this mean that at least the one full pass was done successfully? Also, to make sure that everything is truly zeroed out, I started a one-time zero out erase. So, does this mean, then, that my TC truly has been zeroed out twice for starting over on my backups?
    And, while we're on the subject, I did some research on zeroing out data. Most people are in agreement that doing one pass is good enough. Apple recommends twice for a fully secure wipe. While researching this, I found that some claim that zeroing out a hard drive during a 7 pass and 35 pass method significantly decreases the lifespan of a hard drive. Is this myth busted or confirmed? Also, is zeroing out data only once already harmful to an HD's lifespan?

    William Boyd, Jr. wrote:
    apple_kmj wrote:
    I'm currently zeroing out my Time Capsule's hard drive and starting fresh with backing up.
    I'll leave to others the answering of your questions, but I have one of my own: What are you hoping to accomplish by zeroing out your Time Capsule's drive? I would only consider that useful if I were planning to sell or otherwise dispose of a Time Capsule.
    I heard that it's the best way to go if you have a lot of data synced and you don't want to individually pick out data to delete. Also, backups were taking a while, and I noticed that my Time Machine had nothing on it even though my Time Capsule showed as having almost 80 GB of data backed up. So, just to eliminate any potential problems, I zeroed out data and started over again.

  • Is this a good idea?  Question about backing up data

    Hi,
    I have a MacBook Pro that is about two years old. It's working well.
    I have a year old WD MyBook premium edition, 500GB, that I've been using as an external hard drive to back up my data. Recently, it was working fine (as recent as three days ago). Now, all of a sudden, it won't mount onto my computer. I've tried it in both the USB and Firewire ports, as well as on a different MacBook, and it won't mount anywhere. I also turned it on and off, turned off the computer, connected everything in a different order, etc. Then, I tried it on a PC with XP and it had no problem finding the drive and I was able to open it.
    So I called WD tech support and he told me to do this:
    -Connect the external hard drive to the PC
    -Drag/drop all of the data on the drive onto the PC
    -Reformat the external hard drive in Windows
    -Drag and drop/put the data back on it
    -Try to connect it back to the MacBook pro, where it should mount
    He said something about partitioning the drive, which I sort-of understand what he meant, but not completely. This process seems like it will be long and may not work, so I wanted to get someone else's opinion before I started it. Does this seem like the right idea to get the hard drive to mount?
    Any help would be appreciated. Thanks!

    I see four possible alternatives, in varying degrees of severity:
    # There's some minor problem with the volume, preventing an automatic mount. Start up Disk Utility, plug the drive in (preferably via FireWire). Does the device appear on the left column of D.U.'s window? With the volume name greyed out underneath? If this is the case, try doing a Disk Repair on it: if any errors pop up, you will have to redo the repair until you get no more error messages or D.U. says it can't repair and you need to use stronger stuff.
    # The volume is severely damaged and/or the partition is shot. In this case, the device pops up in D.U., but no volume name appears underneath or you get a generic name. In this case, stronger stuff is mandatory, such as Disk Warrior.
    # The electronics of the drive are damaged, so that nothing appears on D.U.'s window when you plug the drive in on yours and other Macs and with both FireWire or USB. This can be caused by damage to the power supply (drive isn't turning on), the USB/FW bridgeboard that connects those interfaces with the HDD's ATA/SATA controller, or the HDD controller card itself. This would mean that the drive is, indeed, dead but if the HDD still works, you may be able to salvage it by opening the case up, taking the HDD out and putting it in another case, at least till you copy your info over to another drive. Then, if there's any sort of warranty left, you can put it back together and send it in.
    # Your Mac's interface ports (USB/FW) are somehow compromised and not working. Does the drive mount on another Mac? Have you tried resetting the Mac's PRAM/NVRAM and the System Management Controller (SMC)? Are you able to connect your Mac to another via Target Disk Mode?
    Since tools such as Disk Warrior are expensive, some Apple shops may offer checking/repairing your drive with them, for a fee.

  • Question about java.util.date

    hello all. could anyone please help me or give me some input about a small problem i have run in to. okay, im writing a program that will read in 3 different text files and have them sorted into array lists. well i am working on the 3 main class definitions and i have run into a problem. the first 2 classes i just created strings and then ran a equals and a compareTo on them to determine which entry would be first alphabetically when it is entered into the database. well on the last class.. i wanted to do the same thing (create 2 strings and compare them that way).. but i have a java.util.date variable that i am dealing with. is it okay to read in the date into a string like i have been doing? or do i need to do something else.. i am posting the code below so please have a look and get back to me. thanks in advance!
    lastName (is a String)
    firstName (is a String)
    title (is a String)
    dateOfPurchase (is a Date)
    public boolean equals(Order anOrder)
             boolean result;
             String x1 = this.dateOfPurchase + this.lastName + this.firstName + this.title;
             String x2 = anOrder.dateOfPurchase + anOrder.lastName + anOrder.firstName + anOrder.title;
             int i = 0;
             result = true;
             while (i < x1.length())
                if (x1.charAt(i) == x2.charAt(i))
                   i++;
                else
                   result = false;
             return result;
          }

    And if you don't understand casting, look for it in one of the following:
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • Question about send/receive data in as3

    hello
    i want to ask : how can i send data from flash to php using as3 and receive data from php using flash .
    and another question : how can i upload files using as3 .
    thank you .

    Look into URLLoader documentation for sending/receiving and FileReference for uploading:
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html

  • Question about performance (entities & data object)

    Hello:
    I know that this can be, maybe, a silly question, but I've got the doubt
    I get a local reference to a entity ( myEntityLocal ) and I'm going to get many values from it.
    For example
    myEntityLocal.getId();
    myEntityLocal getName();
    myEntityLocal.getAddr();
    etc etc
    My question is
    Would be better, in performance terms, to fill all fields into a data object myEntityData ) and retrieve them from it ?
    I mean
    myEntityData = myEntityLocal.getData() // where getData() calls getter methods on myEntityLocal
    myEntityData.getId();
    myEntityData.getName();
    myEntityData.getAddr();
    I think the result is the same because is a local reference, but I've got that doubt
    Thanks and regards

    This will be san=me if you are considering the Local interfaces.
    For remote interface(like accessing EJB from Servlets resides in diffferent Apps Server) use the DTO(data Transfer Object) patterns.
    Regards
    Sushil

  • Question about voice and data plan for Europe

    I am in New York and my boss is going to France for a week and a half. He told me he will not have access to the internet there. He asked me to find out if it would be possible to get a voice and data plan for the month that he will be there, and if so, could someone show me where I could look at the different plans available?
    If it's not possible to do that for just a month, then could someone tell me where I could find the rates are for voice and data in France?
    Thanks

    Hi kevindrosario,
    I appreciate your interest in our International Services.  France, is a GSM country and will only support a Global capable device. Unfortunately, its not clear if your boss has a Global capable device.  If so, here are the details for the voice and data rates for France.
    If your boss doesn't not have a Global capable device, no worries!  We offer an Occasional Global Traveler program, in which we will loan you a Global device for up to 21 days.  I hope this information is helpful.  Please let me know if you have any any additional questions or concerns.
    Thank you,

Maybe you are looking for

  • IDoc Adapter Logical System Empty

    Hello All, For one of our scenarios for Reciver IDoc adapters we are getting the error "Receiver service cannot be converted into an ALE logical system ". On further investigation it seems the logical system stays on editing the Adapter Specific Mess

  • OIM BP1 over PS1 is very slow

    Hi All, Thought I share with you some information, in case you run into a similar situation. When applying BP1 on a 11.1.1.5 PS1 system, it can take a long time to run. On our system with has been in production for around 8 months, it took 1 day and

  • Quality of movie when "shared"

    I'm a little concerned about the quality of my movie once it's been compressed for the Web or Web streaming: I have several still clips, plus title frames in my project. The still and particularly the type in the titles wind up very fuzzy and difficu

  • Delete Variables in Captivate 8

    Hello,     I have read a previous post on variable deletion within a Captivate project but it did not solve my problem. I tried deleting the associated Advanced Actions/Shared Actions and then deleting the variables, but I am having no luck. When I t

  • There's no left arrow at top to return to preceeding page.

    After downloading the latest version of Firefox, there now is no left arrow at the top left of the page to return to the preceding page of any web site I go to. Before, there was a left and right arrow at the upper left of the page of a website that