i want c program for fetching data from excel sheet
i am using linux for the first time.
i have been given a project which will fetch data from csd(comma separated form) and ll display on d screen.
i want a c program for linux which ll do the above given task. moreover i want the parameter file(such as location of file, file name,etc..) as a different file.
so that i can access this program on any computer.
This question is more about C programing .
You can find here : http://heather.cs.ucdavis.edu/~matloff/unix.html a comprehensive guide about C programing in Linux environment .
Regarding grabbing files from other computers I think you can use system() function ( http://linux.die.net/man/3/system ) and run whatever bash tool you want : ssh , wget , etc.
Welcome to LQ!
What have you done to find a solution to the problem? Other than to post here.
We will aid you when you help yourself to a solution. Provide us with what you have attempted and then maybe someone will be able to assist.
This thread is better off in <Programming>, reported that thread is being moved.
Just a few links to aid you to gaining some understanding. Sure some may seem beyond a newbie but you must start somewhere;
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
Bash Beginners Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking
The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
If you don't know any programming languages, then use Python and not C. Python's standard library has excellent support for reading CSV (comma-separated values) files.
BTW, you subject line should be about fetching data from a CSV file, not an Excel file. After reading just the subject, I was about to post about using Windows' "unmanaged", C++-based Component Object Model API to interoperate with Excel.
I'm assume a real-world application here, of course. Your "project" is trivial enough that it could easily be homework. With homework, the difference would be that you are stuck with C. In that case, you should look at how to handle text files and strings (how to tokenize strings, for example) in C.
|All times are GMT -5. The time now is 09:38 PM.|