Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-31-2011, 04:39 AM   #1
rinu budhbhatti
LQ Newbie
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
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.
Old 01-31-2011, 06:11 AM   #2
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 21

This question is more about C programing .
You can find here : a comprehensive guide about C programing in Linux environment .

Regarding grabbing files from other computers I think you can use system() function ( ) and run whatever bash tool you want : ssh , wget , etc.
Old 01-31-2011, 06:18 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,867
Blog Entries: 27

Rep: Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162Reputation: 2162

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!
Old 01-31-2011, 08:23 AM   #4
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,565

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
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.

Last edited by dugan; 01-31-2011 at 08:32 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what info to be considered from given data sheet while writing driver program. suresh.perumal Linux - Embedded & Single-board computer 6 06-24-2010 10:31 AM
Want to import an excel sheet data from from a remote linux server envisage Programming 1 01-31-2008 01:08 PM
filter a data sheet for blank spaces tjgadu Linux - Newbie 2 04-20-2006 11:39 AM
Music sheet program? enemorales Linux - Software 3 11-26-2005 09:49 PM
how to import MS-Excel sheet data using PHP dileepkk Programming 1 07-28-2004 02:23 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration