Hi,
I am trying to retrieve information from a website http://www.uniprot.org/mapping and have written a C code as follows:
#include <stdlib.h>#include <stdio.h>
#include <string.h>
#include...
Type: Posts; User: madhu_d
Hi,
I am trying to retrieve information from a website http://www.uniprot.org/mapping and have written a C code as follows:
#include <stdlib.h>#include <stdio.h>
#include <string.h>
#include...
Thanks a lot for the clarification and the patience in explaining the complicated stuff.. Though my program is not yet done but I think I better get some reading on textbooks on pointers before...
Apologies for not pasting the compiler errors.
I expect "172098" as the output of this program and I have considered it to be as a string. Initially, I had run the same program without the use of...
I am trying to store each value of a column from a text file into an dynamically allocated array, which needs to be globally declared for further usage in the program.
The input textfile contains...
Thanks a lot for nice illustration!
I am working with databases, as you have guessed correctly. And the files are huge and I wanted to make it a generic program that will work for any number of...
Thanks for explaining.
I added this section:
while(fscanf(int_file1,"%[^\t]\t%[^\t]\t%[^\t]\t%[^\n]",first_col,sec_col,third_col,fourth_col) == 4)
{
printf("%s\t",first_col);...
Yes there are actual tabs in the file. Please clarify what is meant by "feof test is broken".. fscanf seems to be working fine as stated from the commented printf statement which gives correct...
I am trying to read a tab delimited file containing 8 columns and store each element of the column as an 1-dimensional array. Though the program prints the strings correctly as in the commented...
Can solve the present problem by reducing the variable sizes. But I want to generalize my program for a large text file as input. What should be my variable size??
Hi all,
I am very new to C programming and am trying to use struct to store variables from a text file and use them in the main program. I have first tried running the program without using struct...