Results 1 to 6 of 6
Thread: Can any one help me?
- 07-24-2008, 09:40 AM #1
Member
- Join Date
- Jul 2008
- Posts
- 5
- Rep Power
- 0
Can any one help me?
I am new to java.I have a text file in the server(containing the account information of account holders).It is a long file without any delimiters between to separate different types of data namely account no:,name etc. .I have to download that file to the client and convert it into the format given below.
"
char AccNo[12];
char Name[18];
unsigned long AvailableBalance;
unsigned char AccType[5];
date LastCollectedDate;
unsigned char Reserve[21]; /*for size 64 */
"
How can I do that.Please help me by sending a sample code.
:confused::confused::confused:
I think I can create a class having data variables
"
char AccNo[12];
char Name[18];
unsigned long AvailableBalance;
unsigned char AccType[5];
date LastCollectedDate;
unsigned char Reserve[21]; /*for size 64 */
"
I do not no how to proceed.Please help me.Last edited by adarsh_2484; 07-24-2008 at 12:33 PM.
- 07-24-2008, 10:16 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,568
- Rep Power
- 15
No. Show us your code and we will help you correct it, but we are not going to do it for you.
- 07-24-2008, 10:23 AM #3
Could be a problem if there really are no field delimiters. The fields must then be of fixed length - as he has indicated - particularly for the name.
Yet another "very urgent" request - why is it so?
AlanThere are 10 types of people - those who understand binary and those who don't!!
Today is the Beta version of Tomorrow!!
- 07-25-2008, 10:21 AM #4
Member
- Join Date
- Jul 2008
- Posts
- 5
- Rep Power
- 0
Please Help me
Herewith I am attaching my code, for downloading a text file from the server ,along with this message.But It is not working.Please help me to rectify it.
With Regards
Adarsh
- 07-25-2008, 04:48 PM #5
What is NOT working? Could you explain a bit more. There are a lot of ways for a program to NOT work.
If you are having problems with the reading/writing, write a small standalone program to get your code to work.
download that file to the client and convert it
- 07-25-2008, 05:06 PM #6
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,568
- Rep Power
- 15
What does "it doesn't work" mean?
Does it not compile? If not provide the complete compiler message.
Doe it throw an exception when you run it? If so, provide the complete stacktraces to the errors.
Does it do something you don't expect? If so, what, exactly, does it do, and why do you believe that to be unexpected.
Does it not do something that you want it to do? If so, describe exactly what it is was suppossed to do, and what it actually did.
Bookmarks