Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Files

Name: Anonymous 2008-03-29 17:36

In C or possibly C++, is there a way to do an operation on every file in a folder?  For example, load every image within the folder "images", including subfolders.

Name: Anonymous 2008-03-29 17:37

No, there isn't.

Sorry!

Name: Anonymous 2008-03-29 17:44

ls -R images

Name: Anonymous 2008-03-29 17:53

>>2
But is there such an option in LISP?

Name: Anonymous 2008-03-29 17:59

>>4
LISP does not support IO.

Name: Anonymous 2008-03-29 18:04

>>5
IO leads to proprietary code. RMS does not support IO.

Name: Anonymous 2008-03-29 18:07

I don't know a thing about Sepples and only basic C, but is there any rhyme or reason, besides the question in question being so trivial, why nobody has said ``a while loop that reads files one-by-one''?

Name: Anonymous 2008-03-29 18:09

>>7

Go back to /pr/

Name: Anonymous 2008-03-29 18:11

>>8
I am sorry to announce this, but you have been successfully trolled.

Name: Anonymous 2008-03-29 18:12

>>9

Nice try. Now hurry on back.

Name: Anonymous 2008-03-29 18:18

>>10
You have been trolled twice, constantly and repeatedly.

Name: Anonymous 2008-03-29 18:22

>>11

Burden of proof.

Name: Anonymous 2008-03-29 18:29

>>12
Make some fucking sense

Name: Anonymous 2008-03-29 18:33

>>13
Insulting comment.

Name: Anonymous 2008-03-29 18:36

>>13

YHBT. YHL. HAND.

Name: Anonymous 2008-03-29 18:47

you should not be using C for this

Name: Anonymous 2008-03-29 18:55

This is not possible without the help of a custom kernel driver.

Name: Anonymous 2008-03-29 19:12

can't be done with ansi c alone.

Name: Anonymous 2008-03-29 19:33

man 3 readdir

Name: Anonymous 2008-03-29 19:46

opendir/readdir are posix
FindFirstFile/FindNextFile are win32
there's no way of doing it in C

Name: Anonymous 2008-03-29 20:02

>>20
man 3 boost

Name: Anonymous 2008-03-29 20:12

>>21
I didn't realize boost was for C. That's kinda cool

Name: Anonymous 2008-03-29 20:52

>>22
Oh, I have no idea if it is or isn't (I don't think it is), I just wanted to use that of my way of saying, ``I've read boost''.

Name: Anonymous 2008-03-30 0:30

>>23
I doth expel laughter from deep within my belly.

Name: Anonymous 2008-03-30 3:19

Only broken bloated languages need libraries like Boost. A real man's language -- like C or Scheme -- is complete without that added excess bloat.

Name: Anonymous 2008-03-30 17:24

>>25
If C is complete, then why can't it do what OP asked for?

Name: Anonymous 2008-03-30 17:27

>>26
Millions of reasons, I'm too tired to address them here.
You don't even understand what C was made for.
Oh by the way, which C are you talking about?
K&R1 C? ANSI C? ISO C90? ISO C94? ISO C99? Which one? oh, you don't know what these are?
Ok then for which architecture are we talking about? Operating system? File system? right.

Name: Anonymous 2008-03-30 19:05

``Files''? «Folders»? What manner of ABSTRACT BULLSHIT FAGGOTRY is this?
Skip all that bloat and just read and store your data using raw disk access, you fool.

Name: Anonymous 2008-03-30 19:12

In UNIX NIX IX X, a file is a folder, so basically, >>1 is asking how to do an operation for ever file in a file. Ha! The Sussman laughs at thee.

Name: Anonymous 2008-03-30 19:19

>>29
In UNIX there is no folder.
There are directories which are special files. (like slow devices, for example)

Name: HA! HA! 2008-03-30 19:43

>>1-31
Same person and you have been trolled constantly.

Name: Anonymous 2008-03-30 19:45

>>30
Yeah, maybe in you're UNIX. But not in mine.

Name: Anonymous 2008-03-30 19:49

>>32
What about I'm UNIX?

Name: Anonymous 2008-03-30 20:04

>>33
Monads, Haskell Monads.

Name: Anonymous 2008-03-30 20:12

>>32
your* UNIX.
Please learn English.
It's not about my UNIX and your UNIX. It's about the UNIX philosophy.
Flavors are flavors, philosophy is the same.

>>33
LOL.

Name: Anonymous 2010-11-26 11:45

Name: Anonymous 2011-02-04 14:07

Name: Anonymous 2013-01-19 23:36

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List