I've been trying to compile this code for quite a while now, and I'm still having errors. The code now compiles fine, but it releases no output on the console, and while it creates an output file, the output file does not open. In fact, it says that it is too big for either notepad or Word to open, even though it's supposed to be a simple text file.
This is the INPUT file I start with
1 2 3 4 5 6 7 8 9
John Smith 111111111111 1963 2008 4000 Secretary
Tasha Patov 222222222 1973 2010 3000 Marketing
Francie Oldon 3333333333 1983 2008 4000 Secretary
Tuyet Nguyen 4444444444 1993 2012 43750 Sales
Jan Won 55555555 1964 2008 5000 Manager
Julie Nabong 666666666 1989 2010 45000 Manager
Jack Burnside 777777777 1991 2008 2000 Payroll
Larry Zubun 888888888 1980 2010 1500 Manufacturing
Valla Eide 999999999 1948 1980 9000 President
And here is my code. The program is supposed to take data from the input file and then recalculate their yearly salary with a bonus, and then record the new information in an output file called "ReportFile.txt" :
only line 57 would print something to the console window.
line 61: why do u ignore the first 1000 chars ? this is setting the starting point after all of ur data. also, the 2nd parameter is the delimiting character ' '. putting a number there probably wont do what u'r expecting...
the output file does not open. In fact, it says that it is too big for either notepad or Word to open, even though it's supposed to be a simple text file.
¿Did you bother to check the size? Your reading loop is incorrect, causing an infinite loop, and just "filling" the output file