FileArray.java need everyone's help
this one is tough. the directions are to design a class that has a static method named writeArray(). The method should take two arguments, the name of a file and reference to a char array. The file should be opened, the contents of the array should write to the file, and then the file should be closed.
write a second method in the class named readArray(). the method should take two arguments, the name of the file and reference to a char array. the file should be opened, characters should be read from the file and stored in the array, and then the file should be closed. demonstrate both methods in a program.
i don't even know where to start. everyone's help would be appreciated. thanks!
[715 byte] By [
asskoa] at [2007-11-27 8:13:50]

> i don't even know where to start.
You should have started by paying more attention in class.
This isn't very difficult at all, it's only tough for you because you haven't put any effort in and are about to fail.
If you feel the above statements are incorrect then please prove me wrong by posting your code and covering which specific bits are giving you problems.
actually i sit in the front of class. i pay as close attention as i can. we have a teacher read to us in class out of the book. i mean anyone can do that. i read over and over and sometimes i get it done right but then i forget how i did it because i've tried so many ways.(trial and error)and sometimes some of the terms are hard to remember. visual basic was easy because the teacher was equipped with computer's and that's how she taught us. in my c++ class, i was almost getting somewhere until my teacher had an aneurysm. i'd like to finish my first one first before i can even start putting code up. thanks for your reply.
asskoa at 2007-7-12 19:58:19 >

>. thanks for
> your reply.
No problem.
You should note that you are very unlikely to recieve teh codes™ on this site. This is not the way it works and we do not help people to cheat.
The people that might help you cheat only give codes to **** you up further for fun or because they are nitwits, in which the codes will all be wrong.
Anyway, you're going to have to post some code if you want help with this. And be prepared to do your own work largely.
If you aren't prepared to do those things then you might as well leave now.
thank you, i like you..i was about to go to bed and give up but really i like you. you make me want to learn and for that, i will be up writing some code and posting it. just wanted to let you know i don't like taking the easy way out and you can't learn if you do. but the problem i have is writing code that just has nothing but squigly lines. i'll put some code up soon. if your stillup. thanks
asskoa at 2007-7-12 19:58:19 >

Split your assignment in easier-to-solve problems:
1) How to work with arrays
2) How to work with files
2a) How to read from a file
2b) How to write to a file
http://java.sun.com/docs/books/tutorial/ is a good place to start learning. You can also search for keywords.
Good luck. ;-)