- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
While not terribly difficult, first timers may not know the functions to look up and use. Here is some basic code for reading a file one line at a time. The contents of the file are printed to the stdout. |
|
Hello, If I have a text file with the format: Name = MattPhilip Age = 22 how can I use C to read from the file and fill in a structure? Thanks |
|
Hello, I have in a file some text, the area I am concerned in is: #COMMAND TRUE #COMMAND2 TRUE (anytext)1 #ENDCOMMAND I want it to be changed to #COMMAND2 TRUE 1 .. Please note that I dont want all "#ENDCOMMAND"s to be deleted, as there are some not associated with … |
|
I am creating a program that will have a database of schools.. Each months the user needs to add a certain data entry for all schools, like each month the user will need to input how each school scored in a monthly competition. The number of months is not fixed, … |
|
I am initializing and array of objects, i need something like this: Greyhound[1].StartingPosition = pictureBox1.Location; Greyhound[2].StartingPosition = pictureBox2.Location; and so on.. but I need to make it by a loop for ( ......... ) { Greyhound[i].StartingPosition = ????????? // what should go here } |
|
Hello, I have a file with each line consisting of certain fields. Lets say I want to detect which lines have the second field equal.. For example here is the file: [CODE]XM2 N$2 N$2 GROUND GROUND nch_mac1 l=50n w=150n multi=1 nf=1 sd=140n XM1 N$12 N$2 GROUND GROUND nch_mac2 l=50n w=150n … |
|
Hello I need the user to input for example a time format HH:MM(AMorPM) or a complex number format: X+jY Then I want to read HH in and int and MM in another int and the same for the complex number example. I am aware I should use delimiters, but i … |