@john.c and @Structure @Salem
Sorting the entire line as a string make so much sense and i can follow the logic in your codes well. But what if i needed to know the original placement of each...
Type: Posts; User: Tricica
@john.c and @Structure @Salem
Sorting the entire line as a string make so much sense and i can follow the logic in your codes well. But what if i needed to know the original placement of each...
All I could think of is repeating this for loop
for(i=1; i<=num-1; i++) {
fscanf(fptr6, "%s", r);
if(strstr(r, "Al")) {
if(strstr(r, "[0,0]")) {
...
Hello, This is excellent! but it isn't exactly what i require as a output... Your code sorts the file in ascending order from 0 - 19 but the order i require isn't as simple. It needs to be 0 - 1 - 10...
Hello, the actual input here is:
Au[10,0]
Au[11,0]
Au[12,0]
Au[0,0]
Al[1,0]
Al[0,0]
Al[10,0]
Al[5,0]
Hello, I'm looking for a way to organize a file with specific guidelines.
The Text file outputs the following:
Au[10,0]
Au[11,0]
Au[12,0]
Au[0,0]
Al[1,0]
Al[0,0]
Al[10,0]
Hello, I've created a fully functioning code based on your assistance. But I now must adapt it a bit to serve its purpose. Wondering if you still had any tips to assist me.
#include...
Wow awesome, this function is exactly what i needed to get the value of the columns thank you. Just a few questions if you have any time to answer them.
SO i've never made a function in C before so...
Hello, you have helped me tremendously with this forum. I do have another question if you would be able to assist? would be greatly appreciated. Link is below. Its a add on to what i was doing here....
Hello all: I am trying to write a code that reads in a text file and then tell me how many column the file has as a integer. The file is a MxN type, where M (rows) is always going to be 81 and N...
Hey! thank you for the tip! I extracted what i need to exactly! For now this will suffice so i can move on with other calculation. But i do want to put it into a loop so it looks cleaner but im not...
Hello,
So this is the task i am trying to complete. Take a text file and read it into C. read specifically the last 3 columns of the file and store them as arrays for later calculation. How can i...