ive got a question... how do write List arrays to a file using FileOuputDataStream? i've been googling and no signs of any solutions.
ive got a question... how do write List arrays to a file using FileOuputDataStream? i've been googling and no signs of any solutions.
FileOutputDataStream? I think that object doesn't exist in the standard J2SE 5.0 API... Or maybe it belongs to a third party Java API. Kung standard API ang imong pasabot FileOutputStream or DataOutputStream cguro?Originally Posted by catch
@catch: Murag belong gyud cguro na sa third party API bai. Outsourcing company ka nag-work noh?
hahaha im sorry... wrong class. its FileOutputStream. thanks for the correction... anyway, how do you save a List into a file or do i need to do something else?
Create a class that inherets ArrayList, LinkedList, or List then Serialize it. Once ma-serialize na nimo ang class pwede na nimo ma-save ang state sa Object using obj.writeObject(param).Originally Posted by catch
Tan-awa ang problem ni Jerx d great. Ka'y ang iyang program mo-save state na.
bai cen, salamat jud kay sa imong tbang bro!! unsa may akong ikadalit nimo bro??
OT:Originally Posted by jerx d great
ikadalit? add lang ko friendster. heheh... nicen17@lycos.com Mao ra na.
oh, its "writeObject"! im done serializing it but i need my List-created array to save as an ASCII seperated by a comma to a readable tet file... how about that PrintForm class?
gi banned man ang friendster dire sa amo skul bro!! sorry kaayo dli jud tka ma add! ako lang i add kng makasulod ka sa friendster diha!! heheheOriginally Posted by cen
jerus_hangten@yahoo.com
PrintForm Class? Never heard of it. Sorry bro I don't know anything about 3rd party Java API.Originally Posted by catch
I remember. Parehas ana ang activity nako pag-college. Limot naman ko ani bai (Dili na baya ko programmer karon ). Basta inig ka read nimo sa String gikan sa file use the Class StringTokenizer and use "," in the constructor of instance as a delimeter.
Similar Threads |
|