LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
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
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 74

Rep: Reputation: 18
Hi,

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.
 
Old 01-31-2011, 06:18 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,270
Blog Entries: 3

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
Hi,

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
LinuxSelfHelp
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
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,765

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


Reply


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


All times are GMT -5. The time now is 10:36 PM.

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