LinuxQuestions.org
Visit Jeremy's Blog.
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-01-2011, 08:27 AM   #1
A7MADOOV
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Rep: Reputation: 3
Post Reading and writing text files in C


happy new year

Last edited by A7MADOOV; 01-01-2011 at 01:26 PM.
 
Old 01-01-2011, 08:28 AM   #2
A7MADOOV
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 3
please i need help
i want code C this reading data from text file and writing into text file
like reading from source and writing into keyword and number and real number and error and identifier

Last edited by A7MADOOV; 01-01-2011 at 01:27 PM.
 
0 members found this post helpful.
Old 01-01-2011, 08:29 AM   #3
A7MADOOV
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 3
thanks

Last edited by A7MADOOV; 01-01-2011 at 01:26 PM.
 
0 members found this post helpful.
Old 01-01-2011, 08:36 AM   #4
A7MADOOV
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 3
thanks

Last edited by A7MADOOV; 01-01-2011 at 01:28 PM.
 
0 members found this post helpful.
Old 01-01-2011, 12:10 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
A7MADOOV,

Welcome to LQ, I am sad at your reception so far. I hope you can learn to be a productive member of our community, & I offer the following critique in that hope.

I also hope that I have phrased my criticisms gently & that you will see them as constructive. My apologies if I have failed.

In post #9 the big & bold font is shouting just the same as all caps. That is basic netiquette. Since no one likes to be shouted at, doing it is counterproductive -- fewer people will consider your question, let alone answer it.

Here at LQ we're volunteers & don't respond well to demands for help. Your "please i need anyone help me" & "please anyone help me i need it very importaaaaaaaaaaaaaaaan :S:S", especially the "i need it very importaaaaaaaaaaaaaaaan :S:S" part, is dangerously close to that.

Your next post, #10, is a duplicate of the previous one, which is against LQ Rules. Please don't do that again. Other that having a title, the only difference I see is the font size. The right way to fix a mistake in a post, is to use the "Edit" button to change it to what you want it to be. You could still do that. You could also report the other post for deletion.

Post #11 -- You probably aren't aware of this, but one of the goals of LQ is to help as many people as possible; therefore we do our problem solving in public where anyone can be helped by the answers, not just the OP (Original Poster). That means we discourage problem solving by e-mail.

Post #12 is too long & your code loses its formatting unless it's put in "Code:" blocks.
In some cases a pastebin may be more approriate.

I hope you are not totally discouraged by all the negative ratings, e.g. "0 out of 3 members found this post helpful", that your posts have received so far; this is my attempt to explain why that is happening.

I suggest that you clean up your last post & ask (use the "Report" button ) to have it moved into a thread of its own.
 
3 members found this post helpful.
Old 01-02-2011, 03:36 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
A7MADOOV,

Thanks for fixing your large fonts.
Everyone who can, please give him some positive rep as a reward.

You didn't put your question in its own thread yet, do you need help w/ that?
 
Old 01-02-2011, 03:53 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by archtoad6 View Post
You didn't put your question in its own thread yet, do you need help w/ that?
I reported it to be split, so hopefully one of the mods of this forum will do that.
 
Old 01-02-2011, 11:37 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by A7MADOOV View Post
please i need help
i want code C this reading data from text file and writing into text file
like reading from source and writing into keyword and number and real number and error and identifier
Ok. Your post has now been split into a new thread. Can you explain a bit more about what you want to do? I don't understand what you mean by "writing into keyword and number and real number...". Have you done anything on this yourself? If so, post your code and tell us where you're getting stuck. If not, have you looked at, e.g. this?
 
Old 01-02-2011, 03:32 PM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
He deleted his code, rather than putting in a "Code:" block or pastebin.

A7MADOOV,

Now you should make your code available to your reader/helpers. If you have lost it, I can retrieve it for you.
 
Old 01-23-2011, 09:50 PM   #10
dgf1988
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
like this
Quote:
FILE *fp
fp=fopen("filename.txt","wt+");
if(fp==NULL) {
puts("open error!");
exit(1);
}
...
...
...
 
  


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
Writing Reading to/from files concurrently Java manolakis Programming 1 12-28-2008 08:31 AM
Reading/Writing MS Outlook Mail Files GibsonDL Linux - Newbie 2 03-15-2007 03:02 PM
vb.net reading and writing to a text file simultaneously mrobertson Programming 3 09-08-2005 12:30 PM
Reading and writing to files not working proporly realos Programming 4 08-05-2005 08:16 AM
reading / writing OpenOffice files. GŠutama Programming 1 11-04-2003 06:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration