LoginLogin

txt files?

Root / Programming Questions / [.]

JustGreatCreated:
I am aware of how DAT files work, but I still don't know how txt files work. I need to know this to complete my basic understanding of SmileBASIC (and maybe for a game)

TXT files just save a single string, I think. Like MEM files from petit? Not sure don't quote me on this :P

TXT files save...text. It's also the format which you save standard programs under.

So there's no difference between PRGs and TXTs?

So there's no difference between PRGs and TXTs?
...Nope. Although somehow SB can treat them differently.

So there's no difference between PRGs and TXTs?
...Nope. Although somehow SB can treat them differently.
What do you mean by that?

So there's no difference between PRGs and TXTs?
...Nope. Although somehow SB can treat them differently.
What do you mean by that?
Lol I'm confused about file-saving standards for SB, so PRGs are TXT and TXTs are....TXTs?

So there's no difference between PRGs and TXTs?
...Nope. Although somehow SB can treat them differently.
What do you mean by that?
Lol I'm confused about file-saving standards for SB, so PRGs are TXT and TXTs are....TXTs?
There's TXT and DAT files. Period.

I just noticed, does SBS now auto-watch threads you've posted on?

I just noticed, does SBS now auto-watch threads you've posted on?
Yes.

I just noticed, does SBS now auto-watch threads you've posted on?
Yes.
lol disable

I guess when I saw people putting .txt at the end of files, I got the idea that they were a separate file type. I'll live without the feature. I was just worried there was a key component to SmileBASIC that I didn't know how to use.

I guess when I saw people putting .txt at the end of files, I got the idea that they were a separate file type. I'll live without the feature. I was just worried there was a key component to SmileBASIC that I didn't know how to use.
IDK why people put ".txt" at the end of files, unless they don't know how it works... Though the backup file is called "@backup.txt", so maybe that's why. Actually, smilebasic files use a file type prefix. Text files are saved on the SD card as T<programname>, and all others are either B<name> or G<name>, I forget.

I guess when I saw people putting .txt at the end of files, I got the idea that they were a separate file type. I'll live without the feature. I was just worried there was a key component to SmileBASIC that I didn't know how to use.
IDK why people put ".txt" at the end of files, unless they don't know how it works... Though the backup file is called "@backup.txt", so maybe that's why. Actually, smilebasic files use a file type prefix. Text files are saved on the SD card as T<programname>, and all others are either B<name> or G<name>, I forget.
I can see why people would put ".txt" at the end of a file. Game.PRG could mean application and Game.TXT could mean text.

I can imagine using extensions would be useful for filtering. Imagine if you needed to prompt the user with a specific list of files for them to choose from. Extensions would help identify which files serve what purpose.

I can imagine using extensions would be useful for filtering. Imagine if you needed to prompt the user with a specific list of files for them to choose from. Extensions would help identify which files serve what purpose.
For example, the Voxel Editor uses .vxl as an extension to sort out files made using the program.