I am looking for some links to sites that have sample C code.
More specifically I need to write a program that reads a fixed length file and writes the output as a comma delimited file. I will be using structs to read from...
However, the sites would help out now and for future reference...
Since no one else replied I will reply to myself.
Basically I was not reading enough bytes of data. For it to work correctly it looks like you need to read the newline character located in the input file. Here are the changes:
CopyTestIn.h
struct pmCopyTestIn
{
char data_source_id...
Hello,
I am a little new to C. Her is my case:
I am reading a record, doing a simple if check and writing the new record to an output file. However when I process the records I am getting 2 records for each record read. I know this is some kind of line feed problem but I am not sure what to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.