123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|463|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Monkeying with Files

Sun, 26 Jul 2015, 06:41
spinal
Has anyone used FileSize() in monkey? I can't get the damn thing to return anything

-=-=-
Check out my excellent homepage!
Sun, 26 Jul 2015, 06:41
Jayenkai
I haven't touched ANY of Monkey's File-access stuff, I'm afraid.

-=-=-
''Load, Next List!''
Sun, 26 Jul 2015, 07:10
steve_ancell
I made a class that loads a file into an array; as text, line by line, and numerical data can be converted by using Int, Float or any other commands that happen to turn text into numbers.

I suppose it could be modified to give the number of lines stored, or total number of characters if you add-up everything in each line.

I'll go modify it in a sec and then post it here.
Sun, 26 Jul 2015, 07:20
spinal
No need, got a different idea, sounds the same as yours, working.



Basically checks the length of the text grabbed from each file. If no length, then assume the file does not exist.

-=-=-
Check out my excellent homepage!
Sun, 26 Jul 2015, 07:40
steve_ancell
That seems like a good way of doing it, you're welcome to use mine though if you like. Have a looksie and see if it's useful in any way.



Sun, 26 Jul 2015, 07:42
steve_ancell
I really should be doing a SaveOut class too at some point.