www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Win32 <=> UNIX code, using iostreams

↑ ↓ ← "Matthew" <matthew stlsoft.org> writes:
I'm trying to quickly knock up a C++/STL sample for the recls libraries
which will convert text files (on a directory-recursive basis) between UNIX
(\n) and Windows (\r\n).

I'm in a rush, so wondered whether anyone has already got some sample code,
preferably using the iostreams, but fine if using stdio.

Also, if anyone's got one in D, or wants to write a similar sample to go in
the recls libs, that'd be cool.

There's no cash, but a modicum of fame to be had.

Cheers


-- 
Matthew Wilson

Synesis Software; Custom Software Solutions
    (www.synesis.com.au)
Contributing editor, C/C++ Users Journal
    (www.synesis.com.au/articles.html#columns)
STLSoft moderator
    (http://www.stlsoft.org)
Mar 19 2004
→ "Matthew" <matthew stlsoft.org> writes:
Obviously the recursive searching will be done using recls. It's the
individual file processing code I'm after.

Points will be given for succinctness. Extra points for correctness. ;)

 I'm trying to quickly knock up a C++/STL sample for the recls libraries
 which will convert text files (on a directory-recursive basis) between

 (\n) and Windows (\r\n).

 I'm in a rush, so wondered whether anyone has already got some sample

 preferably using the iostreams, but fine if using stdio.

 Also, if anyone's got one in D, or wants to write a similar sample to go

 the recls libs, that'd be cool.

 There's no cash, but a modicum of fame to be had.

 Cheers


 -- 
 Matthew Wilson

 Synesis Software; Custom Software Solutions
     (www.synesis.com.au)
 Contributing editor, C/C++ Users Journal
     (www.synesis.com.au/articles.html#columns)
 STLSoft moderator
     (http://www.stlsoft.org)

Mar 19 2004
Jan Knepper <jan smartsoft.us> writes:
Matthew wrote:
 I'm trying to quickly knock up a C++/STL sample for the recls libraries
 which will convert text files (on a directory-recursive basis) between UNIX
 (\n) and Windows (\r\n).
 
 I'm in a rush, so wondered whether anyone has already got some sample code,
 preferably using the iostreams, but fine if using stdio.
 
 Also, if anyone's got one in D, or wants to write a similar sample to go in
 the recls libs, that'd be cool.
 
 There's no cash, but a modicum of fame to be had.
 
 Cheers
 
 

Hey... I don't have one using STL, but one that does it FAST on Win32 as well as Unix... ;-) -- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Mar 19 2004
↑ ↓ → "Matthew" <matthew stlsoft.org> writes:
Well, that's good enough for me. Post/send way :)

"Jan Knepper" <jan smartsoft.us> wrote in message
news:c3euql$1r9b$1 digitaldaemon.com...
 Matthew wrote:
 I'm trying to quickly knock up a C++/STL sample for the recls libraries
 which will convert text files (on a directory-recursive basis) between


 (\n) and Windows (\r\n).

 I'm in a rush, so wondered whether anyone has already got some sample


 preferably using the iostreams, but fine if using stdio.

 Also, if anyone's got one in D, or wants to write a similar sample to go


 the recls libs, that'd be cool.

 There's no cash, but a modicum of fame to be had.

 Cheers

Hey... I don't have one using STL, but one that does it FAST on Win32 as well as Unix... ;-) -- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org

Mar 19 2004