AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Array (De)Serializer? (https://forums.alliedmods.net/showthread.php?t=62271)

Podunk 10-22-2007 13:16

Array (De)Serializer?
 
I'm looking for something which can store a 2 dimensional array of bytes in a file, and reconstruct another 2 dimensional array of bytes after reading such file.

Wilson [29th ID] 10-24-2007 12:34

Re: Array (De)Serializer?
 
write_file
read_file

Just store them as one line each and parse them out.

MaximusBrood 10-24-2007 16:52

Re: Array (De)Serializer?
 
It's better to use the C file natives.
fopen, fputc and fgetc (in your case)

Podunk 10-25-2007 00:33

Re: Array (De)Serializer?
 
Quote:

Originally Posted by MaximusBrood (Post 545788)
It's better to use the C file natives.
fopen, fputc and fgetc (in your case)

Interesting, why is that?

Greenberet 10-25-2007 12:18

Re: Array (De)Serializer?
 
performance


All times are GMT -4. The time now is 01:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.