i see, well thanks for the help
Type: Posts; User: jackofalltrades
i see, well thanks for the help
But isn't that method for c++ ?
So I have a while loop that reads in file names from a text, and I want to get the file creation time of each file that it reads in. Is there a way to do this ? (Working on a windows 98 computer,...
Yup I got it to print all the file names, I was just placing the loop in the wrong place... thanks though.
#include<stdio.h>
int main()
{
char line[1000];
int i=0;
FILE *file_in;
file_in=fopen("filenames.txt", "r");
fscanf(file_in,"%s", line);
Thanks for all the help I have figured it out.
The file size is too big for me to upload it, however, you would ideally expect all the hex values converted to ints and all the ints being printed to the screen (tab separated) however, i want to...
Don't have a code yet, however, I tried to work with fwrite and couldnt figure out what the parameters should be. Logically, however I think that I need to have another pointer that points to the...
I want to write the converted values i.e the int values and not the hex values. I'm having trouble with that.
#include <stdio.h>
#include <iostream>
using namespace std;
// Get the size of a file
long getFileSize(FILE *file)
{
#include <stdio.h>
#include <iostream>
using namespace std;
// An unsigned char can store 1 Bytes (8bits) of data (0-255)
typedef unsigned char BYTE;
I have got the code working, however i'm having issues with writing them to a file... does anyone have suggestions ?
i'm not entirely sure of that, so u think i should use buffersize instead ?
This is the output that I get.
yup they appear as garbage characters in a text editor
#include <stdio.h>
int main(void)
{
FILE *fp;
int foo[10];
int i;