Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with directory management Post 48265 by Perderabo on Tuesday 2nd of March 2004 10:46:26 AM
Old 03-02-2004
You can use the stdio package to manipulate file. Do "man stdio" and then read the man page for each of the routines like fopen, fprintf, fclose, etc. And if borland doesn't have those available it is in violation of the c standard.

It doesn't make sense to copy a file that you are writing...just write the data twice.

Another approach is to use the system calls directly.. "man open", "man read" will get you started there.
 

9 More Discussions You Might Find Interesting

1. AIX

User Management

Can someone suggest me any means of having a controlled way to user access ... basically we have a varied environment of people(users) logging in to AIX boxes ... either via 1) telnet ... 2) application 3) databse (SQL's) what we need to do is formalise this .. can someone help me with this ... (2 Replies)
Discussion started by: rajesh_149
2 Replies

2. Programming

Need to know about Event Management

Hi I need to understand abt Event Management Library for example..A module will be responsible for Handling the event posted by the other modules...and creating a new process for handling the event posted by the other modules..also after completing the event clearing of the event... Need to... (3 Replies)
Discussion started by: nathgopi214
3 Replies

3. Shell Programming and Scripting

string management

I want to prompt for a full name, then select the surname from the full name. Then address the person as the surname entered in the fullname (1 Reply)
Discussion started by: orjnet
1 Replies

4. HP-UX

Software management HP/UX 9.00

Hello, all! I'm newbie in HP/UX and at my job I'm dealing with HP/UX 9.00. Due this OS is an old one, I couldn't find some info, concretely, about software management on it. Can you please help me? (5 Replies)
Discussion started by: Che_G
5 Replies

5. UNIX and Linux Applications

Password management / centralized password management

Hello all, I need help for build server call as Password management / centralized password management server. My situation and example: I have 600 server in my server room running on Linux then I need 1 server only can create login/password and then user can login to all 600 server no... (2 Replies)
Discussion started by: sheikh76
2 Replies

6. HP-UX

Patch Management

HI all, As per the audit policy, patch has to be apply periodically, but in my scenerio, it has been applied lastly in the year 2010. Using HP UX 11.11, 11.21 and 11.31 I would like to know, how to identify the patches which are need to update, what will be the procedure to update, how to... (5 Replies)
Discussion started by: selvaforum
5 Replies

7. IP Networking

IP Management

Hello all, I was wondering which way do you use to manage you IPs? For example in our case we have excel sheets and we export them in html first and import it to a server running apache, so to be visible from all. But i was wondering if there are any way (prefer a way running in web server)... (2 Replies)
Discussion started by: @dagio
2 Replies

8. UNIX for Advanced & Expert Users

Password management

You know those lists of "the most common passwords"? I was looking at one of those because I actually want to use a really common password or two on occasion. The thing is I'm skeptical that these are legitimate lists. Most things these days require at least 8 chars with a numeral. But these lists... (1 Reply)
Discussion started by: jutnobs
1 Replies

9. What is on Your Mind?

Individual Risk Management (Personal IT Security) and Browser Cache Management

Original post from this thread on browser caching. To add to this, it is an effective security measure to clear absolutely all cached data (cookies, web content, ....) when closing the browser - i.e. in case of a shutdown. It takes a bit of work to re-login to all the sites but websites will not... (7 Replies)
Discussion started by: bakunin
7 Replies
FCLOSEALL(3)						     Linux Programmer's Manual						      FCLOSEALL(3)

NAME
fcloseall - close all open streams SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <stdio.h> int fcloseall(void); DESCRIPTION
The fcloseall() function closes all of the calling process's open streams. Buffered output for each stream is written before it is closed (as for fflush(3)); buffered input is discarded. The standard streams, stdin, stdout, and stderr are also closed. RETURN VALUE
This function returns 0 if all files were successfully closed; on error, EOF is returned. CONFORMING TO
This function is a GNU extension. SEE ALSO
close(2), fclose(3), fflush(3), fopen(3), setbuf(3) COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2006-12-27 FCLOSEALL(3)
All times are GMT -4. The time now is 03:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy