Hi,
I am using C language to read a file: row.txt
Can any one plz help me to get number of rows present in a file BEFORE reading a file.
So i can check number of rows and if the rows greater than the array size, i can throw an error.
I just wanted to check row numbers before fscanf function so we can come to know that how many rows are in row.txt file.
Please find my code:
...
User Profile
Collapse
-
Query reg file handeling..
-
How to check who deleted files in unix
Hi,
Any one let me know that how can we check that who deleted files in unix (sun).
Thanks,
Sharique -
before:
ANZAED12M
ANZAED1M
ANZAED1M
ANZAED2M
ANZAED2M
ANZAED3M
ANZAED3M
ANZAED6M
ANZAED6M
ANZAED9M
after:
OOOAED12M ... -
Reg sql query
I have a SQL Table I am trying to update...I would like to add 'ABC' to the START of every value in a perticular column.
Can any one help me..
--
Sharique -
Reg Database
Can any one let me know sql quey to get loginname of databse/table thru which we logged in?
--
Sharique -
Hi Rahgu,
I want to read from a file which is having space delimeters and more than 5 rows like:
Reuters syr2d2 SSL_D2000 Y U REUTERS
EBS ebsctrl SSL_D2000 N B EBS
F1XONLINE fxolimp f1xonline_deals X F F1XONLINE FXLOC
at line 1 and 2 ..in the last space is there...so want to read that space...
Can u suggest me on this?...Leave a comment:
-
-
read space through file handeling
Hi All,
I am using file handeling in C lang.
Can anyone please let me know that how can i read spaces from a perticular file??
To read some values (strings) i m using fscanf func.
Can anyone plz help me on this.
Thanks,
Sharique -
Hi Raghu,
But can we avoid duplicates values ( when we are reading from file )??
after reading values from file, we can put in array or in stuct.
----
Sharique...Leave a comment:
-
Hi Rahgu,
I have written this code:
::Full code removed, please read Posting Guidelines::
in that code, how can i avoid duplicate values? i m not aware abt hash list and i have checked with my team mate....i can use only simple file hadeling.
please help me on this...
--
Sharique...Leave a comment:
-
-
Hi Rahgu,
I have written this code:
::Full code removed, please read Posting Guidelines::
in that code, how can i avoid duplicate values? i m not aware abt hash list and i have checked with my team mate....i can use only simple file hadeling.
please help me on this...
--
Sharique...Leave a comment:
-
Hi Raghu,
I have to use only C file handeling...i cant change this.
Can u plz give me small example to select only distinct values from file which we ae opening thru file handeling...
if possible plz give me peice of prog.
Thanks,
Sharique...Leave a comment:
-
-
Related File Handeling in C lang.
Hi All,
I want to get some values by reading a file (already created) through file handeling but dont want to get DUPLICATE values.
How can i do that..plz help me out.......
E.g: file name input.txt having rows like:
Root 400
Bye 789
Teacher 123
Bye 789
in output i want to print only :
Root 400
Bye 789
Teacher 123
Note:... -
-
Hi ,
try this one::
<CODE REMOVED BY MODERATOR - PLEASE READ OUR POSTING GUIDELINES>
and print both variables...Leave a comment:
-
What is difference between static library and dynamic library
Hi All,
Can any one let me know the correct diffrence between static library and dynamic library while using C language?
-------------
Sharique -
Reg array size
Hi all,
I am defining array of structure like that : STRUCT_NAME array[1024].
I am fetching some records from EMP table and copying into that array one by one using while loop.
But it will work only 1024 records if records will be greater than 1024 then it will not work.
If I increase the size as 1030 then it will work for 1030 records.
But If I increase the size as 1031 or 1100 then it will... -
Reg memory error
Hi All,
I m creating one exe using C programing and i m facing one issue in this.
I defined an array which size was 1024 (like SortOnPrimarySo l[1024] )Now i want to increase this size to more than this 1024.
While increasing the size as more than 1035, the exe is creating but while execiting this exe, its giving me memory reference error.
If i will decrease this size to 1030 and again create this exe and...
No activity results to display
Show More
Leave a comment: