Author Topic: Text editor for text files needed  (Read 2992 times)

0 Members and 1 Guest are viewing this topic.

Offline rcamp48

  • Newbie
  • Posts: 62
    • View Profile
Text editor for text files needed
« 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
« Last Edit: May 03, 2020, 05:49:39 pm by rcamp48 »
Russ Campbell
rcamp48@rogers.com
BBS Files Programmer

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
In order to understand recursion, one must first understand recursion.

Offline euklides

  • Forum Regular
  • Posts: 128
    • View Profile
Re: Text editor for text files needed
« Reply #2 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
Why not yes ?

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Text editor for text files needed
« Reply #3 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.