You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, May 14th 2012, 7:59am

How to read a data from linedit and write that data to a file, Note: the file must not contaion the same data.

Hi guys,
FYI

I need to read some data from a line edit and write that data to a text file.
In case the data which we are reading from the line edit is already existing in the file that particular data should not be re-written into the file

Help me please.

Suggestion most honored.

Thanking you

Regards
Baz

2

Monday, May 14th 2012, 10:11am

load file contents to memory in some data format, X say.

read line edit data

search X for line edit data

if data not in X then add to X

when you have finished adding contents, save X to disk.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.