C What are the common classes related to file reading and writing?

Updated on technology 2024-05-29
17 answers
  1. Anonymous users2024-02-11

    This is too much for basic data types, io operations (io), generics, message (message), and of course if you want to do the application, the relevant controls.

    If you do the web, you need to use the controls.

  2. Anonymous users2024-02-10

    Will you use your vs help docs? Do you still need to ask about this? Using the help documentation yourself is much more powerful than all the people here combined! ~

    And don't give a penny, go with the help documentation.

  3. Anonymous users2024-02-09

    Just look at the others, the dataset in the database, the datareader

  4. Anonymous users2024-02-08

    Except for the ones that are not commonly used, the rest are commonly used!!

  5. Anonymous users2024-02-07

    If you do it yourself, you will know which classes are commonly used.

  6. Anonymous users2024-02-06

    Without this thing, the ** files in c are all of them. cs, a class can be written in multiple files, and similarly, multiple classes can be written to the same file.

  7. Anonymous users2024-02-05

    Generally, the file category is related to the operating system, not the programming language. Are you referring to the file class and the fileinfo class in c?

  8. Anonymous users2024-02-04

    Generally speaking, reading and writing a file with a C program requires the following five basic steps: 1. Create a file stream.

    2. Create a reader or writer.

    3. Perform read and write operations.

    4. Turn off the reader or writer.

    5. Close the file stream.

    By the way, we need to introduce namespaces here.

    using ;

  9. Anonymous users2024-02-03

    Read: Open---Read --- Off.

    Write: Open or create--- write --> save --> close.

  10. Anonymous users2024-02-02

    Files are the basic unit of computer data management, and they are also an important place for applications to save and read data. A file refers to an ordered collection of data permanently stored on various storage media (such as hard disks, removable disks, CDs, etc.), and it is the basic object for data reading and writing operations.

    Each file has a file name, a path to the file, and a creation.

    Time and access only. However, file and stream are two concepts that are both distinct and related. A stream is an abstraction of a sequence of bytes, such as a file, an input/output device, an internal process communication pipeline, and so on.

    Streams provide a way to write bytes to and read bytes from backing memory.

    There are many types of streams other than file streams that are directly related to disk files.

    There are a variety of classes available in the namespace, with.

    It is used to read and write files and data streams. To use these classes, you need to include a statement at the beginning of the program:

    using ;

  11. Anonymous users2024-02-01

    First of all, C is an object-oriented and run-in system released by Microsoft. A high-level programming language on top of the .NET Framework. c It has two basic classes.

    A class called object is the base class for all other classes. And a class called string is part of the language just like object. Existing as part of the language means that it is possible for the compiler to use it, and whenever a quoted string is written in the program, the compiler creates a string object to hold it.

  12. Anonymous users2024-01-31

    A class is a collection of variables and functions, you can think of it as a box, the grid inside is fixed, each box can only hold a specified type of items (class), for example, a certain grid is specified to contain triangles (int), you can put red and yellow, etc.) various triangles, but you can only hold triangles (int values), not five-pointed stars (string).

    The user actually contains two classes, one is the user class, which is a custom class; One is the array class. user is an array class with the user class as a single piece of data. If you think of an array as a box, one of the boxes holds all the user data, and you can find the user data you want by number.

  13. Anonymous users2024-01-30

    This is an array of custom types.

    First of all, the custom type, that is, user can be seen by looking at the name, he is a class made by the teacher himself, and it has properties and methods like the type of the system.

    Array, in layman's terms, can be said to be a container, like user abc=new user[3] A new container is created, and the container has 3 slots, each slot can put a user, and the name of this container is abc

  14. Anonymous users2024-01-29

    user is a custom class that is defined as data that can hold data from multiple users (perhaps users) at the same time.

    For example, abc[0] stores your information, and abc[1] stores your daughter-in-law's information.

    The specific definition of user may be name, number, password, permissions, etc...

  15. Anonymous users2024-01-28

    user abc=new user[3];This isn't a build object yet (or memory space hasn't been allocated yet).

    This is just an array of the user object with a length of 3

    Actual allocation of memory control abc[0]=new user(); This is where an object is instantiated.

  16. Anonymous users2024-01-27

    That's the syntax for defining arrays defined by c itself.

  17. Anonymous users2024-01-26

    Top!!!

    Commonly used or not is based on the nature of your project, if the network is used a lot, you can use some protocols, socket classes are more, if it is multi-threaded development, you may use thread classes, process classes, etc.

    Just like professional courses, different majors have different course focuses. Hehe.

Related questions
9 answers2024-05-29

I think it works, I did it once when I first started working, and I don't remember it very well, but you can try it with the seek function, locate it first, read it later, and I remember when I was doing this, I read the book The C Programmer, which is about 234 pages.

6 answers2024-05-29

Don't understand what you mean by startmark and enterstumark. >>>More

19 answers2024-05-29

Clean up the C drive, temporary files, Internet records, etc.

14 answers2024-05-29

Uninstall directly from Add Remove Programs, which is the most commonly used method. However, I think this is generally needed by people who go online to find uninstallation methods; >>>More

13 answers2024-05-29

You save the path in an XML and read it out the next time you start it.