Hi,
Is it possible to make use of data files in C? If yes can someone
tell how or suggest me a site from where I can learn them.
Thanks in Advance for your patience. 15 1712 be*********@yah oo.com (Xarky) wrote: Is it possible to make use of data files in C?
No, it's not. Data files are a very advanced subject of information
theory, much too complicated for a simple language like C. In fact, even
C++, which we all know is a much stronger language than C, capable of
expressing much more advanced data types, is barely strong enough to
handle data files.
If you really need to use C, stick to simple kinds of files like binary
and text files, and keep all your data in memory or on the stack. If you
do need to use data files, my suggestion is to use a truly modern,
advanced programming language, such as ADA, ML, or Visual Basic.
Richard
Richard Bos wrote: be*********@yah oo.com (Xarky) wrote:
Is it possible to make use of data files in C?
No, it's not. Data files are a very advanced subject of information theory, much too complicated for a simple language like C. In fact, even C++, which we all know is a much stronger language than C, capable of expressing much more advanced data types, is barely strong enough to handle data files. If you really need to use C, stick to simple kinds of files like binary and text files, and keep all your data in memory or on the stack. If you do need to use data files, my suggestion is to use a truly modern, advanced programming language, such as ADA, ML, or Visual Basic.
Richard
Either there is sarcasm in this reply, or we have a different
understanding of the term "data file".
My understanding is any "data", integers, text, whatever, that
is placed into a file makes the file a "data file". That file
could be as simple as a word list or as complex as a database.
According to my definition, any language that has file access
capabilities can make use of data files.
The OP should review the "Files" or "I/O" section of a good
C language reference manual.
--
Thomas Matthews
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html
Other sites: http://www.josuttis.com -- C++ STL Library book
On Mon, 3 May 2004, Xarky wrote: Hi, Is it possible to make use of data files in C? If yes can someone tell how or suggest me a site from where I can learn them.
The question is too vague to answer. I'd be inclined to say the answer is
YES. To the second part of your question, get a good text book on C
language or take a class at your local school. I have yet to see a good
online tutorial for someone with no programming experience.
--
Send e-mail to: darrell at cs dot toronto dot edu
Don't send e-mail to vi************@ whitehouse.gov
Thomas Matthews <Th************ *************** *@sbcglobal.net > wrote: Richard Bos wrote: be*********@yah oo.com (Xarky) wrote:
Is it possible to make use of data files in C?
No, it's not. Data files are a very advanced subject of information theory, much too complicated for a simple language like C.
Either there is sarcasm in this reply,
Surely not! Me, sarcastic? Inconceivable!
Richard
"Xarky" <be*********@ya hoo.com> wrote in message
news:bc******** *************** **@posting.goog le.com... Hi, Is it possible to make use of data files in C? If yes can someone tell how or suggest me a site from where I can learn them.
Thanks in Advance for your patience.
why wouldnt it be possible? What kind of data are you talking about. I use
C and store vertex/texture data of 3d models usinf fwrite, and load them
back using fread. No problems, nice and quick and fairly darned reliable.
Perhaps, you should re-word your question?
Allan
Xarky wrote: Hi, Is it possible to make use of data files in C?
I am afraid that is a very generic question. Having said that, there
is one thing you would like to know to begin with files in C - there are
text and binary data files and you distinguish between them while trying
to open the file.
Now, any standard C book should have something related to FILE
manipulation and the FILE data structure associated with this, that can
answer your questions.
If yes can someone tell how or suggest me a site from where I can learn them.
There is only one site for all the fundamental questions - http://www.google.com .
--
Karthik
Humans please 'removeme_' for my real email.
Richard Bos wrote: be*********@yah oo.com (Xarky) wrote:
Is it possible to make use of data files in C?
No, it's not. Data files are a very advanced subject of information theory, much too complicated for a simple language like C. In fact, even C++, which we all know is a much stronger language than C, capable of expressing much more advanced data types, is barely strong enough to handle data files.
If you really need to use C, stick to simple kinds of files like binary and text files, and keep all your data in memory or on the stack. If you do need to use data files, my suggestion is to use a truly modern, advanced programming language, such as ADA, ML, or Visual Basic.
Very amusing. You might have borne in mind that you are replying
to some sort of newbie, who is quite likely to take you
seriously. A sarcasm wrapper, or even some smileys, would have
been appropriate.
--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
"Xarky" <be*********@ya hoo.com> wrote in message Is it possible to make use of data files in C? If yes can someone tell how or suggest me a site from where I can learn them.
I suspect you are using the term "data files" to refer to some sort of
specific file format, such as a commercially available database might use.
In ANSI C you can open a file in text mode or in binary mode using the
fopen() function. You then have to know the format of the file to interpret
the data, which might be an ASCII text file, a JPEG image, a sound file, or
practically anything.
Now if someone has defined a special file format they will very often
provide C functions to help to parse it. For instance, if you are using MS
Windows, you can load a bitmap using a function that Microsoft has provided.
This will be one call rather than having to do all the work yourself. If
your "data file" is provided by a third party, then it is extremely likely
that they will have written some functions in C and will provide them to
programmers (assuming that they offer suport to developers at all).
Richard Bos <rl*@hoekstra-uitgeverij.nl> scribbled the following: Thomas Matthews <Th************ *************** *@sbcglobal.net > wrote: Richard Bos wrote: > be*********@yah oo.com (Xarky) wrote: >> Is it possible to make use of data files in C? > > No, it's not. Data files are a very advanced subject of information > theory, much too complicated for a simple language like C. Either there is sarcasm in this reply,
Surely not! Me, sarcastic? Inconceivable!
"You keep using that word. I don't think it means what you think it
means."
Did I do this right? Anyway, I think that "The Holy Grail" is a much
funnier movie.
--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Show me a good mouser and I'll show you a cat with bad breath."
- Garfield This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nelson Minar |
last post by:
I'm writing some code to upload photos to Flickr. The Photo Upload API
requires documents be POSTed via a multipart/form-data request. I was
surprised to learn that Python 2.3's HTTP clients don't support this
form of POSTs. There is support in cgi.py, for servers.
There are some implementations of multipart/form-data on ASPN:...
|
by: Ivan |
last post by:
Hi,
SQL Server 2000 SP3
Windos 2000 Server SP4
I have a DTS package that imports data from a dBase IV databse with
files located in two folders (dBF1 and dBF2). I use a transform data
task to transform the data.
They were running properly, but last week we installed W2K SP4, and
|
by: eieiohh |
last post by:
MySQL 3.23.49
PHP 4.3.8
Apache 2.0.51
Hi All!
Newbie..
I had a CRM Open Source application installed and running. Windows Xp
crashed. I was able to copy the contents of the entire hard drive onto
a USB External Hard Drive. I have to assume I also copied the data. I
|
by: Chris Springer |
last post by:
I'd like to get some feedback on the issue of storing data out to disk and
where to store it. I've never been in a production environment in
programming so you'll have to bear with me...
My question is about storing data in a database. Yes I understand that you
can link to a database in your program and read and write to the database
etc...
|
by: E.T. Grey |
last post by:
Hi,
I have an interesting problem. I have a (LARGE) set of historical data
that I want to keep on a central server, as several separate files. I
want a client process to be able to request the data in a specific file
by specifying the file name, start date/time and end date/time.
The files are in binary format, to conserve space on the...
| |
by: george585 |
last post by:
Hello!
I am new to network programming, and understand just basics. Using some sample code, and having read documentation, I managed to create a simple app in C# and VB.NET. The application is supposed to do the following:
monitor ALL INCOMING TCP traffic on the local computer, and save certain parts of it as files - not log files though, but...
|
by: LucasLondon |
last post by:
Hi,
Sorry, this is a bit of a lengthy one but I guess too much information is better than less!
I have an excel worksheet that I update regulary with latest values from downloaded CSV files. Right now, other than a couple of basic recorded macros to clean up the source data CSV files, most of this process is manual and I'l looking to...
|
by: Winder |
last post by:
Computer Data Recovery Help 24/7
Data recovering tools and services is our focus. We will recover your
data in a cost effective and efficient manner. We recover all
operating systems and media. Call for a free consultation.
http://a.uuload.com/Computer-Data-Recovery.htm
LiveVault's Online Recovery Service
Protect vital data with...
|
by: Debadatta Mishra |
last post by:
Introduction
In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |