Will do that... it would have saved me loads of time... THANKS! You all are very helpful!
Type: Posts; User: wisdom30
Will do that... it would have saved me loads of time... THANKS! You all are very helpful!
Seriously you have just made my day!!! I am so very happy... I once again like programming - atleast for this hour... Big Huge smile on my face! THANKS THANKS THANKS!!!
tabstop you rock!!!
changes.... changes
void add()
{
int inventory, catagory, quantity, choice, total_products = 0, ctyp, c, items, key;
double cost, price, cateType[6], costs, category;
int n = 0, count...
That is what I get in my file, and YES tabstop!!! That is what I entered! How do you see that and I don't? What am I doing wrong? THANKS FOR THE HELP!
Is it wrong for me to close the file, if I don't need it anymore? Isn't it good form to close it after it has done its job, so stuff doesn't get written to it haphazardly? The file contains that min...
I am paying attention... seriously? Okay I am going to read what you wrote....
Didn't make very many changes... but here is my new code.
void add()
{
int inventory, catagory, quantity, choice, total_products = 0, ctyp, c, items, key;
double cost, price,...
Thanks for the reply tabstop. The reason I closed the file is because it is a totally different file, then from the one I am writting to and attempting to report/show from. Also i am using an array...
Thanks for the replies! I am going to carefully read what ea of you has written, make some changes and report what I find.
On a side note, my program in the beginning is reading from a file -...
Hello I am having a problem, I need my program to write data to a .dat file, then I need it to report/show my data, however I keep getting an error 'Access violation reading location', when I try to...
Figured it out! I got rid of the arrays and stored everything into variables! However even after I did that it still wasn't printing what was in the text file, so I went to check my text file and low...
What do you mean I am reading them as single values? Please correct me if I am wrong, but when I use the fscanf function, isn't the data being scanned stored in my t array(s)? Is this what I am...
int t1[6], t2[6], t3[6], t4[6], t5[6],t6[6];
double t7[6], t8[6], t9[6], t10[6];
FILE *tp;
tp = fopen("report.txt", "rt");
if (tp == NULL)
{
printf("Error opening source file\n");...
I have created my program, however we have just been introduced to text files. I can get my code to read the file however, I have tried everything to get it to scan the file and store the data into...