Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. 010 Editor Template Help

010 Editor Template Help

Scheduled Pinned Locked Moved IT & Infrastructure
helptutorialquestion
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nit3mare
    wrote on last edited by
    #1

    I found this site on Google, and im new to programming and the lot, i hope this section is ok to put this. I have made a template to view the contents of some .dat files in plain text and numbers.

    struct STRFILE {
    struct HEADER {
    int rows;
    int columns;
    int size;
    } header;

    struct STR {
    int number; //to be extracted
    char code[64]; //to be extracted
    char kor[64];
    char por[64];
    char chi[64];
    char eng[64]; //to be extracted
    char mal[64];
    char unk[64];
    char en1[64];
    char un1[64];
    char un2[64];
    } str[ strfile.header.rows ];

    } strfile;

    There is the template so far, what i need help with is this: I need to know if there is a way to extract certain sections of the file to a txt file. for example i would like to have it extract the sections for "number" , "code" and "eng" into a .txt file that would look something like this: 0 code eng 1 code eng etc is this possible and if so can someone give me a hand? Thanks in advanced.

    J 1 Reply Last reply
    0
    • N nit3mare

      I found this site on Google, and im new to programming and the lot, i hope this section is ok to put this. I have made a template to view the contents of some .dat files in plain text and numbers.

      struct STRFILE {
      struct HEADER {
      int rows;
      int columns;
      int size;
      } header;

      struct STR {
      int number; //to be extracted
      char code[64]; //to be extracted
      char kor[64];
      char por[64];
      char chi[64];
      char eng[64]; //to be extracted
      char mal[64];
      char unk[64];
      char en1[64];
      char un1[64];
      char un2[64];
      } str[ strfile.header.rows ];

      } strfile;

      There is the template so far, what i need help with is this: I need to know if there is a way to extract certain sections of the file to a txt file. for example i would like to have it extract the sections for "number" , "code" and "eng" into a .txt file that would look something like this: 0 code eng 1 code eng etc is this possible and if so can someone give me a hand? Thanks in advanced.

      J Offline
      J Offline
      Jerry Dungee
      wrote on last edited by
      #2

      Google SplitFile.1sc It's a SweetScape example script. In that script they show how to copy and paste via the clipboard, and how to switch the selected file back and forth.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups