473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Replace getchar(File) and putchar(File) with some C code

Replace getchar(File) and putchar(File) with some C code
Jul 27 '07 #1
2 1899
Banfa
9,065 Expert Mod 8TB
Your post is too short and too lacking in detail for us to be able to give a clear answer. I suggest that you check the forum posting guidelines.

getchar and putchar are already C functions from the standard library so would not need replacing, however they do not take any sort of file handle as input.
Jul 27 '07 #2
JosAH
11,448 Expert 8TB
Replace getchar(File) and putchar(File) with some C code
The C preprocessor is your friend here, but why do you want to replace them?

kind regards,

Jos
Jul 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: spike | last post by:
Im trying to write a program that should read through a binary file searching for the character sequence "\name\" Then it should read the characters following the "\name\" sequence until a NULL...
0
by: lc | last post by:
I'm building a small image gallery type of site and along with it I'm adding a few pages for site maintenance. One of the maintenance functions is to replace an image (haven't tried delete and new...
7
by: abcd | last post by:
I have a script which zips up a directory, once it does with that (before it closes the zip file) I want to replace a file that was added to the zip, say "Foo.txt". So I tried this... z =...
1
by: Tino Alves | last post by:
Hi there, I'm newly here, and a beginner too. I'm tryng to open a file that realy exists, but I cannot do that. I'm using the Turbo C++ 3.0 compiler and my code is: #include <stdio.h>...
1
by: yky | last post by:
in this programme,if i input a number 100,the program will be over ,and i donot have the chance to input a char to z; # include<stdio.h> main() { int x; char z; do {printf("please input a...
12
by: Sankar | last post by:
Dear all, I am programming in Linux , wherein I need to know a couple of things. 1) Does an API exist that can copy file onto another file ( an API equivalent of 'cp') ? 2) Is there an API...
2
by: barnetod | last post by:
I am trying to open a text file designated by the user. Then I want to change all lower case values to capital letters. Then write file. I am stuck and can not change the characters or am...
22
by: J.Broeden | last post by:
Hi, I'm hoping to get some advice on this design query to see if I'm heading in the right direction. I would like to read a file of many lines and then search for a particular character to break...
1
by: shapper | last post by:
Hello, I am moving file from a folder A to folder B using: System.IO.File.Move(path, newpath) I am not sure if this is the best way to do this but I also need to: 1. Rename the file...
9
by: Amkcoder | last post by:
I am trying to read a file a character at a time, I want to read in the new line character. I am printing out each character to the screen. For some reason it will not print out the new line. I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.