(i figured it out)

Okay, I get NO compiler errors. But it just will not work. Opens a window, shows nothing. and dissapears!
CODE:

use std::fs;
use std::fs::File;
use std::io::{BufRead, BufReader};
use std::prelude::rust_2021::String as String;
use std::{thread, time};



pub fn main() {
    let data = fs::read_to_string("config.set");
    let fsread = data;
    let mut stringset:String;
	let mut stringset = String::new();
    let mut auga:String;
    let mut augb:String;
    let mut setting;
	let mut stringsetaug:String;
	let mut stringsetaug = String::new();
    setting = "A";
	let f = BufReader::new(File::open("main.fs").expect("open failed"));
    for line in f.lines() {
		setting = "A";
        for c in line.expect("lines failed").chars() {
            // main system
			if setting == "A" {
				stringset.push(c);
				if c == ' ' {
					setting = "B";
				}
            }
            if c != ';' {
				if setting != "A" {
					stringsetaug.push(c);
					}
                }
             
			if c == ';' {
				if setting != "A" {
					//processing unit
					stringsetaug.remove(0);
					if stringset == "println" {
						println!("{}", stringsetaug);
					}
					if stringset == "dischange" {
						println!("FLUFFSCRIPT SOFTWARE 2021")
					}
				}
                }
			}
	}		
	thread::sleep(time::Duration::from_millis(1000));		
}
		


And here is what main.fs contains:

print HELLOWORLD;

SORRY, i figured it out, simple mistake!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.