QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: rcamp48 on May 03, 2020, 05:43:21 pm

Title: Text editor for text files needed
Post by: rcamp48 on May 03, 2020, 05:43:21 pm
Hi Guys:

I am in need of a simple text editor to run within a QB64 program that will  read In a text.cfg file, or any other file as a text file, allow you to edit that file and write it back out in the same format. I am writing a program for editing Config and Batch files for Bulletin Board Online Games, and need it to be integrated into my program. I have the program written, but I am waiting to get something that will do this, a basic menu driven text editor would do. Russ
Title: Re: Text editor for ext files needed
Post by: TerryRitchie on May 03, 2020, 05:50:34 pm
Here's one:

https://www.qb64.org/forum/index.php?topic=1642.msg108603#msg108603

Title: Re: Text editor for text files needed
Post by: euklides on May 04, 2020, 03:50:53 am
Other simple way (under windows):

fic$ = "C:\temp\my file in texte.mode.cfg"
app$ = "wordpad"
SHELL app$ + " " + CHR$(34) + fic$ + CHR$(34)
input k$

continuation of the program here
Title: Re: Text editor for text files needed
Post by: bplus on May 04, 2020, 07:38:35 am
Other simple way (under windows):

fic$ = "C:\temp\my file in texte.mode.cfg"
app$ = "wordpad"
SHELL app$ + " " + CHR$(34) + fic$ + CHR$(34)
input k$

continuation of the program here

+1 Yeah I have this line for my Help file for a Gin Rummy Game I am working on:
Code: QB64: [Select]
  1. SHELL _DONTWAIT "Grim Rummy Variation.txt"

I can read and edit the file as I develop the game, it's like having 2 windows open.

Also there is _CLIPBOARD to Copy/Paste between files.