Tabstop, thank you very much for you help. I've finished my program and it works a treat. I've put the code below if anyone ever wants it in the future.
#include <stdio.h>
#include <string.h>...
Type: Posts; User: ojm
Tabstop, thank you very much for you help. I've finished my program and it works a treat. I've put the code below if anyone ever wants it in the future.
#include <stdio.h>
#include <string.h>...
So if the directory is changed before writing to the tempory files it will work? Is there a simple line of code that can open the directory and then from then on use that directory?
Thanks for...
By this, do you mean that the file selected has to be in the folder that the output tet files are?
Another question while I am at it. Is there a way to run the program from the command prompt in...
Well. My compiler didn't have errno.h, so I just changed complier.. and guess what: it now works with EVERY combination of file name. That is pretty annoying. Sorry for the wasted time all. For the...
C:\DOCUME~1\pzqkvv\Desktop\INDEX_~1>split
Enter Filename: 20090101a.txt
Opening 20090101a.txt...
20090101a.txt Opened Successfully.
ACD.txt Opened Successfully....
Okay, its no an eight character problem, I came to that assumption a bit early. But look at these results:
Enter Filename: index20090101.txt
Opening index20090101.txt...
Error Opening File:...
Figured it out: it works with text files that have 8 characters or less in the name of the file. This would explain why I was thinking it would only work for YYYYMMDD.txt files, not ones with words...
I don't understand why it cannot work for any format. By format I mean the text files name. The data within the text file is the same each time. The program asks for the file name, so should there be...
Hi guys, I've got some code for a C program that splits a text file.
It splits a text file into different components, and currently works for text files with YYYYMMDD.txt format. For example, here...