File: system_write_file_util.cpp

package info (click to toggle)
pingus 0.7.6-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,672 kB
  • sloc: cpp: 42,080; xml: 2,319; lisp: 521; ruby: 455; ansic: 365; objc: 248; sh: 247; makefile: 140; python: 15
file content (21 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>

#include "util/pathname.hpp"
#include "util/system.hpp"

int main(int argc, char** argv)
{
  if (argc != 3)
  {
    std::cout << "Usage: " << argv[0] << " OUTFILE CONTENT" << std::endl;
    return 1;
  }
  else
  {
    System::write_file(argv[1], argv[2]);
  }

  return 0;
}

/* EOF */