|
|||
|
I am trying to load an encrypted sting from a file using the code below. The problem is that only a portion of the file will load.
Code: instream = new StringStream(); content = instream.readFromFile(programfilesfolder+justFilen ame+"\\gameconfig.game"); instream.close(); The encryote file content: n/2yXKƩEp0[FzjE MШ>zJ^Ԥ 'Ĕs2hg$)/5'RO)[c1y}kB"⟗I5+7sL}a$(xe =J 3Kˍ^.RCy-]C^.r]'x*<.JEqjMtT!B>+PEҸpTC|P S-_ eDQvo[3+s%tf%jҩc*YP{Lk '/!1,!{0KݚuV`Y @O·dL]WnY%Wj|jJڽCA+lGkX[pf'slE-_wD,.XԂSc &:\Nc;9Y^Ȕ*ZD|_Hz?nQN(9z\'b A8Ri1ߦqGf6xy'Y~M}6"4 e, P)-c)\h÷yCz|k<Ba% /Q:?oPZm&\E2}!}`K )Fʞ.f@2m ħ_.2+Q1ɏu8N`Vr>d $\Y#}uќ*fCZ (>)9mXg&$ku.WzÇ;n5>t -G _6 -:NZƻddsÐ^)__%e\VW z$@edo E#$V eüwH{|-rDfhe+p>-Wr55_vL^K#8a 79d7.*MQRo1_H3#Hj>C9K A0\N[ YzoEG1`g驈Hg=z(\8s ̕bЌ߷#v[]5FDPmYCYn_^H87D,*p*щ;_\ PWYdwĝrI_+Y,f{ d2JtC?vlj~/!ަ=SEKVl}TJ{}DfIzF ˀgp 0~a]?$:tOoJUl*V߫muhp@8! Wh(n#!u@U!DF!&#V1ȫ/胕ʺci;=$>/wVnͥʡ18LLo&I-';JlRg?M ݧ rRa)F⚙کv Rd#iy hIK?`Z,8&!aN=tZGŧ줚8Ȁ3{L ڥ%^`NU_5Jb*͆.?kA ҸSڴKR֦s4䚪DoAOHzѬo* "TW$^M5`4HF#ZR3X>h,,'p?Ͳ?D71_!¤*a;pϛ 厺Y݄|]qPTcV6l0 FoeX{=)6v-Ze>e*'M\²D~hU:"&v۲ zƩhaf]U ;* o 9'>`<i6!́vKu<`f `c1,8 Cl?ge,B"Yϵٲ.l.I l?bY4 ̰i`ʐB@iS0EhcJ2pf֞Fȋ$7ۈN 1ƈMJ8V1aTE`S*_NNŨ_@IeCaKh=F5ϴ#K QT(*F94s!P$1u330_,*;=&+ 8~w c*gI>ܢ@fsi!~ʦ=Qw<cvI$ ŋ&x[z\(j(E0k`2IKnOJ.jpև5iN9~pjU p;h+8͇%{eݬ|n~)gsxU<[D1 x\p_WW*T2|#Jqz nFܲ; xLwzSQ~Kz5w&d))qQ3\,+@4*CQMS68-`5;%,v}@/%h*"808yRGƕ#+G'o ajmVc΄V|I|ͰN$nt9?pq|X h h`8%%=S 537HS<Ûg/ৢ֍kU{`^gȬRCh:^S$ Y^/V6 XL?.>`YhjfvB3;"'.H>̮A? HFZ 3Ftc/V;x<Ff:XQ(E'Ԛ'p>m(kն{' f{xC*eq yJMcG5V|$IwLs+?fZ MP!7yde]5w(Λ-! v}'j{ DСzUۥj%`$7Hίx׃kL:Uf aRC0]Wr.,BfPbʱMp=(O `/e`{7NҪܩ[7%j"[{CK4C;~&]c戳}yhzoz`7H7 |
|
|||
|
The StringStream object can retrieve the entire file, but if you convert it to a string, you may get only a partial of the file, for there may be a zero in the file which means the end of a string. So you need to decode the data to a string at first.
|
|
|||
|
Please tell us how do you encrypt the file. support@swfkit.com
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|