Hi,

Can you plz help me in creating a file in C having columns rec_id (int), score (float), hour (int), no_clicks (int) with rec_id values ranging from 1 to 100, score values initialized to 0.11, hour values initialized to 0 and no_clicks values also initialized to 0. And then generating another file with a sequence of 100 clicks on different records (having rec_id, system time).

Thanks

Re: creating a file in C ? 80 80

Please post some code so that we can see what you have worked on until now.

Check the forum rules here

Also here is a C File I/O tutorial to help you get started.

Re: creating a file in C ? 80 80

Also here is a C File I/O tutorial to help you get started.

link is broken

Re: creating a file in C ? 80 80

link is broken

I disagree?

Re: creating a file in C ? 80 80

This is what I get when I click that link

Re: creating a file in C ? 80 80

Strange .. mine works.

Here is the link again

http://www.mattjustice.com/cnotes/c_fileio.html

Re: creating a file in C ? 80 80

thanks for the info..m also working on it..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.