Dear E11 students, kindly update your status of the File I/O project given by Pravjot Sir. Any queries regarding the same should be posted here in this thread only.
All students are required to post a comment.
Dear E11 students, kindly update your status of the File I/O project given by Pravjot Sir. Any queries regarding the same should be posted here in this thread only.
All students are required to post a comment.
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
I have done open read write of file. but how to compare character of string?
You can simply compare two strings using strcmp(string1, string2) declared under string.h
Another method is to compare a string character by character using arrays.
yesterday i run the file open,read & write now i am trying the master array
i have also done open read write of file….n try to make masterarry….
i have complete my open read write
go on guyss.. am working on masterarray too.
I have understad the master array and I m working over that.In master array the comparision is done through array or file which we have written?
you need to store only those characters into the masterarray which are not present in it. Compare the data which you have written inside that “source_file”, character by character with the contents of masterarray using arrays.
I hav problem in imlementing comparision in array through charectare by charectare .
what’s the problem you are facing exactly??
for comparison how we compare should we use strcmp?
make a masterarray.. assign some width to it, likely to be of the number of bytes you have stored in your source_file.
In the string say ‘rbuff’ that you have inputted, start comparing from its 0th element with each and every character of ‘masterarray’. If anywhere that character of ‘rbuff’ matches with that of masterarray then break the loop and compare the next element of ‘rbuff’ again with every character of masterarray.
today i am reading the doc of string because that doc help of string comparion with separate character
i have done open read and write in file..
I have implemented master array to a certain extent but there is a very strange problem I am facing.
I have inputted a string “My name is Rajpreet. I am a student of emblogic.” into my source_file.
Instead of storing characters from ‘M’ of My, characters are stored from ‘i’ of is. However masterarray is working fine from “is”.
I have provided 0 as the initial condition to every loop. what to do?? :-/
have u used lseek ?
yes.. i have used it.
i have done open read and write in file but cud not yet sort out how to compare the strings, although i m workin on it
Implemented masterarray
Done with masterarray as well as Codelength.
i have done master array but i want to short it because it is long
go on.. work on it.
i have done open read write of file….n now trying to implement master array….
how to compare the strings?
i have done read write file…..
i have also done master array….
i have done the master array finally…..
Master array created successfully..
master array created …
master array implemented
done with master array…
i have done open read\write a file and master array..