answersLogoWhite

0

FILE* f

f = fopen ("file name", "br");

... fread (f, ...);

fclose (f);

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is difference between binary file and Excel file?

When referring to Excel 2007, there are two file types you can use when you save a file, XML and binary. If you save the file as binary, then there is no difference between the two. If you save the file as XML, then the XML file contains XML formatting data (explanation beyond the scope of this question) and the binary file is formatted for computers to read directly.


How do you read a value from .pdf file using winrunner TSL scripting?

try with file_open command it will work. if not possible asume that as a image and then using coordinates you can get a value bye chanti


How do you make a command on Ubuntu 9.04?

Anything can be made into a command on a Linux system. The steps are easy. First, using any text editor (vim, emacs, etc.) create a text file. Put anything you want to do in this file. Save the file. Make sure the file you just created has read and execute permissions (chmod). That's it! Now you have a command that you can execute in Linux.


Is there a way to convert a binary dll file to text so the dll file can be read and understood?

If you have access to the symbols and a debugger, then yes. However, without a symbol file for the binary, you can only extract limited information from the binary. You might try Spy++(SpyXX.exe), Dependency Walker (depends.exe), and/or a hex editor. A symbol file will have the same name as the binary DLL, or EXE and a file extension of .pdb (e.g. ntdll.dll, ntdll.pdb / ntoskrnl.exe, ntoskrnl.pdb)


How do you read input of a programme from a text file using borland c compiler from command prompt?

Use functions like fopen, fclose, fgets, sscanf, strtok


What is the working of attrib command?

The attrib command is a Recovery Console command used to change the file attributes for a file or directory while in Recovery Console. An attrib command is also available from the Command Prompt. attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [filename] +r = This assigns the read-only file attribute to the file or directory. -r = This removes the read-only attribute. +s = This assigns the system file attribute to the file or directory. -s = This removes the system attribute. +h = This assigns the hidden file attribute to the file or directory. -h = This removes the hidden attribute. +c = This assigns the compressed file attribute to the file or directory. -c = This removes the compressed attribute. filename = This is the file or directory that you are wanting to change the attributes of.


Which mode is used to open a binary file in write and read mode?

open: O_BINARY|O_RDWR fopen: "rb+"


How would you command someone not to read leer using the tú command?

using the "tú" subject pronoun, I assume. "No leas"


How do you read files in python?

Assuming that the file contains just textual stuff, create an object to represent it: stuff = file ( 'stuff.txt' ) To read a line of the file at a time: line = stuff.readline() Python signals end-of-file by returning an empty line which you can test for in a construction such as the following: stuff = file ( 'stuff.txt' ) while True: line = stuff.readline() if line : # do something here pass else : break You can read the entire file using : whole_contents = stuff.read() If the file had contained binary then it would have been necessary to open it as such: stuff = file ( 'stuff.bn', 'b' )


How can we lock the file with DOS?

To lock a file in DOS, you can use the ATTRIB command to set the file as read-only, which prevents modifications. The command syntax is ATTRIB +R filename, where "filename" is the name of the file you want to lock. Additionally, you can set file permissions using attributes like hidden or system. However, true file locking in DOS is limited, as it doesn't provide robust file locking mechanisms like modern operating systems.


What ms dos command will make the file system.doc read only?

make systemdoc ro


What is the difference between binary file and text file in java?

HI... When you access a file from within C or C++ you have a choice between treating the file as a binary file or as a text file. C uses the fopen(file,mode) statement to open a file and the mode identifies whether you are opening the file to read, write, or append and also whether the file is to be opened in binary or text mode. C++ opens a file by linking it to a stream so you don't specify whether the file is to be opened in binary or text mode on the open statement. Instead the method that you use to read and/or write to the file determines which mode you are using. If you use the operator to write to the file then the file will be accessed in text mode. If instead you use the put() and get() or read()and write() functions then the file will be accessed in binary mode. So what exactly is the difference between text and binary modes? Well the difference is that text files contain lines (or records) of text and each of these has an end-of-line marker automatically appended to the end of it whenever you indicate that you have reached the end of a line. There is an end of line at the end of the text written with the C fwrite() function or in C++ when you