Computing.Net > Forums > Programming > Text Edit in C

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Text Edit in C

Reply to Message Icon

Name: Poco87
Date: July 21, 2008 at 07:28:46 Pacific
OS: Windows
CPU/Ram: n/a
Product: n/a
Comment:

I am currently editing hundreds of data files by hand so they can be read with a new software. I have tried to write a program to do it for me, but being new to C i was unable to make it work. The files have lines of text like so:

150110 ON US 50 4.4 01 1400 052107
0000 0000 0000 000 000 000 OF RIPLE

followed by many lines of data. The first few lines need to be changed and reorganized, for instance 150110 needs to become 000015011011 and ON US 50 needs to move to the end of the second line, etc etc. Could someone let me know how to read each of these components and edit them appropriately? Thanks a lot in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: July 21, 2008 at 18:39:53 Pacific
Reply:

C is powerful, but probably not what you should be using. Perl would probably be a better option.


0

Response Number 2
Name: Poco87
Date: July 22, 2008 at 06:32:46 Pacific
Reply:

not familiar with it...is it similar and do you know where I can find a tutorial?


0

Response Number 3
Name: nails
Date: July 22, 2008 at 08:00:25 Pacific
Reply:
0

Response Number 4
Name: Poco87
Date: August 7, 2008 at 07:43:40 Pacific
Reply:

Thanks it worked great. Perl is my new favorite language.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


keyboard emulation dos range



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Text Edit in C

read text file in c to char pointer www.computing.net/answers/programming/read-text-file-in-c-to-char-pointer/7074.html

Text Editor/Fstream c++ help www.computing.net/answers/programming/text-editorfstream-c-help/9994.html

handling files in c www.computing.net/answers/programming/handling-files-in-c/18818.html